#126A2F#126A2F
#126A2F is a mid, vivid green. Relative luminance 0.106; OKLCH L 46.1% C 0.122 H 149.0°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).
Color values
| HEX | #126A2F |
|---|---|
| RGB | rgb(18, 106, 47) |
| HSL | hsl(140, 71%, 24%) |
| HSV | hsv(140, 83%, 42%) |
| CMYK | cmyk(83%, 0%, 55.7%, 58.4%) |
| CIE-LAB | lab(38.97, -38.78, 25.98) |
| CIE-LCH | lch(38.97, 46.68, 146.18°) |
| OKLab | oklab(46.09% -0.1042 0.0626) |
| OKLCH | oklch(46.09% 0.122 149) |
| XYZ | xyz(5.9161, 10.6412, 4.4309) |
| Luminance | 0.1064 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Spruce
#0A5F38
ΔE00 5.74
Pine
#2B5D34
ΔE00 5.99
Forest Green
#2D5A27
ΔE00 6.39
Darkgreen
#006400
ΔE00 6.43
Darkish Green
#287C37
ΔE00 6.47
Deep Green
#02590F
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#126A2F #6A124D
analogous
#216A12 #126A2F #126A5B
triadic
#126A2F #2F126A #6A2F12
tetradic
#126A2F #12216A #6A124D #6A5B12
square
#126A2F #12216A #6A124D #6A5B12
split-complementary
#126A2F #5B126A #6A1221
monochromatic
#041A0C #093618 #126A2F #1B9E46 #24D35D
Accessibility & contrast
On white
6.71
#126A2F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#126A2F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #126A2F
6.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##126A2F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##126A2F | 1.00 | 6.71 | 3.13 | 6.71 |
| #FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6B602A
Deuteranopia (green-blind)
#615933
Tritanopia (blue-blind)
#00685D
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #126a2f; /* rgb */ color: rgb(18, 106, 47); /* oklch */ color: oklch(46.1% 0.122 149.0);
Tailwind
colors: {
custom: {
50: '#619569',
500: '#126a2f',
950: '#000000',
},
}SCSS
$custom: #126a2f; $custom-light: #619569; $custom-dark: #000000;
JSON
{
"hex": "#126a2f",
"rgb": {
"r": 18,
"g": 106,
"b": 47
},
"hsl": {
"h": 139.773,
"s": 70.968,
"l": 24.314
},
"oklch": {
"l": 0.46091,
"c": 0.12152,
"h": 149
},
"luminance": 0.10642
}Semantic roles & 50–950 ramp
primary
#126A2F
secondary
#A2367E
accent
#3AB3EE
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060D06
muted
#7A7E7A