Skip to content
PantoneTools
green
CSS Named Colors

Olivedrab

olivedrab · #6B8E23

HEX

#6B8E23

RGB

rgb(107, 142, 35)

CMYK

cmyk(25%, 0%, 75%, 44%)

HSL

hsl(80, 60%, 35%)

LAB

lab(54.6, -28.2, 49.7)

What is Olivedrab?

Olivedrab is the olivedrab reference in the CSS Named Colors. Its sRGB value is #6B8E23 (rgb 107, 142, 35). It sits in the green family. The 147 named colors defined by the W3C CSS Color Module Level 4 specification — usable directly in CSS as keywords like 'crimson' or 'rebeccapurple'. See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Olivedrab as a background.

Black text on this color

Sample text · 5.52 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 3.81 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Olivedrab

An 11-step tonal scale derived from Olivedrab (#6B8E23). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #F3F6ED

50

#F3F6ED

#F3F6ED

Copied #E7EDDC

100

#E7EDDC

#E7EDDC

Copied #D0DBB9

200

#D0DBB9

#D0DBB9

Copied #B5C791

300

#B5C791

#B5C791

Copied #90AA5A

400

#90AA5A

#90AA5A

Copied #6B8E23

500

#6B8E23

#6B8E23

Copied #5B791E

600

#5B791E

#5B791E

Copied #465C17

700

#465C17

#465C17

Copied #304010

800

#304010

#304010

Copied #1B2409

900

#1B2409

#1B2409

Copied #0D1104

950

#0D1104

#0D1104

Lighter tints (mixed with white)

Copied #8FA671

15%

#8FA671

Copied #AABA98

30%

#AABA98

Copied #C1CBB5

45%

#C1CBB5

Copied #D4DBCC

60%

#D4DBCC

Copied #E5E9E1

75%

#E5E9E1

Darker shades (mixed with black)

Copied #638420

15%

#638420

Copied #5A781C

30%

#5A781C

Copied #506C18

45%

#506C18

Copied #455C13

60%

#455C13

Copied #364A0D

75%

#364A0D

Color harmonies for Olivedrab

Classic color-theory harmonies derived from rotating the hue of Olivedrab. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #6B8E23

#6B8E23

#6B8E23

Copied #47248F

#47248F

#47248F

Triadic

Three colors 120° apart

Copied #6B8E23

#6B8E23

#6B8E23

Copied #246B8F

#246B8F

#246B8F

Copied #8F246B

#8F246B

#8F246B

Analogous

Two neighbors ±30° on the wheel

Copied #8F7D24

#8F7D24

#8F7D24

Copied #6B8E23

#6B8E23

#6B8E23

Copied #368F24

#368F24

#368F24

Split-complementary

Base + two colors flanking its complement

Copied #6B8E23

#6B8E23

#6B8E23

Copied #24368F

#24368F

#24368F

Copied #7D248F

#7D248F

#7D248F

Tetradic

Two complementary pairs

Copied #6B8E23

#6B8E23

#6B8E23

Copied #248F47

#248F47

#248F47

Copied #47248F

#47248F

#47248F

Copied #8F246B

#8F246B

#8F246B

Square

Four colors evenly spaced 90° apart

Copied #6B8E23

#6B8E23

#6B8E23

Copied #248F7D

#248F7D

#248F7D

Copied #47248F

#47248F

#47248F

Copied #8F2436

#8F2436

#8F2436

Olivedrab in every color space

Full conversion of Olivedrab across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#6B8E23

RGB

rgb(107, 142, 35)

CMYK

cmyk(25%, 0%, 75%, 44%)

HSL

hsl(80, 60%, 35%)

HSV

hsv(80, 75%, 56%)

HWB

hwb(80 14% 44%)

CIE Lab

lab(54.6 -28.2 49.7)

OKLCH

oklch(59.9% 0.137 126.3)

XYZ (D65)

xyz(16.04, 22.59, 5.11)

Copy-ready code for Olivedrab

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #6B8E23;
background-color: #6B8E23;

CSS variable

:root {
  --color-olivedrab: #6B8E23;
}

Tailwind config

// tailwind.config.js
colors: {
  'olivedrab': '#6B8E23',
}

Sass

$color-olivedrab: #6B8E23;

Swift UIColor

UIColor(red: 0.420, green: 0.557, blue: 0.137, alpha: 1.0)

Android XML

<color name="olivedrab">#6B8E23</color>

Closest match in every color system

The nearest Olivedrab equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in CSS Named Colors

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #4C9141

RAL 6017

#4C9141

May green

Copied #57A639

RAL 6018

#57A639

Yellow green

Copied #999950

RAL 1020

#999950

Olive yellow

Copied #308446

RAL 6024

#308446

Traffic green

Copied #9D9101

RAL 1027

#9D9101

Curry

Copied #89AC76

RAL 6021

#89AC76

Pale green

FAQ about Olivedrab

What is the HEX code for Olivedrab?

Olivedrab (olivedrab) has the HEX code #6B8E23. In RGB it is rgb(107, 142, 35), and in CMYK it is cmyk(25%, 0%, 75%, 44%).

What is the OKLCH value of Olivedrab?

Olivedrab converts to oklch(0.599 0.137 126.3). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Olivedrab accessible for body text?

Used as a background, Olivedrab has a contrast ratio of 5.52:1 with black text and 3.81:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use black text and verify in real UI context.

What is the closest Pantone to Olivedrab?

The closest Pantone reference to Olivedrab by ΔE2000 perceptual distance is Pantone 370 C (#658D1B). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Olivedrab?

The closest RAL Classic reference to Olivedrab by ΔE2000 distance is RAL 6017 (May green, #4C9141). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Olivedrab?

The complementary color (180° opposite on the HSL color wheel) of Olivedrab is #47248F. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

CSS Named Colors (CSS Color Module Level 4)

The 147 named colors defined by the W3C CSS Color Module Level 4 specification. Origin: VGA (16) + X11 (rest) + 'rebeccapurple'. Use as a reference for web color names that all browsers natively support. Names like 'crimson' or 'rebeccapurple' work as CSS values without any framework.

Source type
derived
Confidence
high
License
W3C permissive document license
Last reviewed
2026-05-24

Workflow tags

css
web-standard
named-keyword
green

CSS named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.

CSS Named Colors · Olivedrab — #6B8E23 | PantoneTools