#2A6F18#2A6F18
#2A6F18 is a mid, vivid green. Relative luminance 0.119; OKLCH L 48.0% C 0.138 H 140.1°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2A6F18 |
|---|---|
| RGB | rgb(42, 111, 24) |
| HSL | hsl(108, 64%, 26%) |
| HSV | hsv(108, 78%, 44%) |
| CMYK | cmyk(62.2%, 0%, 78.4%, 56.5%) |
| CIE-LAB | lab(41.10, -38.51, 39.36) |
| CIE-LCH | lch(41.10, 55.07, 134.37°) |
| OKLab | oklab(47.95% -0.1057 0.0885) |
| OKLCH | oklch(47.95% 0.138 140.1) |
| XYZ | xyz(6.8038, 11.9265, 2.8075) |
| Luminance | 0.1193 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 4.53
Tree Green
#2A7E19
ΔE00 5.23
Darkish Green
#287C37
ΔE00 6.05
Green
#008000
ΔE00 6.50
Dark Grass Green
#388004
ΔE00 6.87
Deep Green
#02590F
ΔE00 7.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A6F18 #5D186F
analogous
#566F18 #2A6F18 #186F32
triadic
#2A6F18 #182A6F #6F182A
tetradic
#2A6F18 #18566F #5D186F #6F3218
square
#2A6F18 #18566F #5D186F #6F3218
split-complementary
#2A6F18 #32186F #6F1856
monochromatic
#0A1905 #173D0D #2A6F18 #3DA123 #51D22F
Accessibility & contrast
On white
6.20
#2A6F18 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#2A6F18 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A6F18
6.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A6F18 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A6F18 | 1.00 | 6.20 | 3.39 | 6.20 |
| #FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#726406
Deuteranopia (green-blind)
#6A5F21
Tritanopia (blue-blind)
#216B5E
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #2a6f18; /* rgb */ color: rgb(42, 111, 24); /* oklch */ color: oklch(48.0% 0.138 140.1);
Tailwind
colors: {
custom: {
50: '#6d995c',
500: '#2a6f18',
950: '#000000',
},
}SCSS
$custom: #2a6f18; $custom-light: #6d995c; $custom-dark: #000000;
JSON
{
"hex": "#2a6f18",
"rgb": {
"r": 42,
"g": 111,
"b": 24
},
"hsl": {
"h": 107.586,
"s": 64.444,
"l": 26.471
},
"oklch": {
"l": 0.47951,
"c": 0.13786,
"h": 140.1
},
"luminance": 0.11927
}Semantic roles & 50–950 ramp
primary
#2A6F18
secondary
#8F3EA5
accent
#40E7C5
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79