#126A2C#126A2C
#126A2C is a mid, vivid green. Relative luminance 0.106; OKLCH L 46.0% C 0.124 H 148.0°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).
Color values
| HEX | #126A2C |
|---|---|
| RGB | rgb(18, 106, 44) |
| HSL | hsl(138, 71%, 24%) |
| HSV | hsv(138, 83%, 42%) |
| CMYK | cmyk(83%, 0%, 58.5%, 58.4%) |
| CIE-LAB | lab(38.93, -39.27, 27.54) |
| CIE-LCH | lch(38.93, 47.96, 144.95°) |
| OKLab | oklab(46.04% -0.1055 0.0658) |
| OKLCH | oklch(46.04% 0.124 148) |
| XYZ | xyz(5.8576, 10.6178, 4.1231) |
| Luminance | 0.1062 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 5.82
Deep Green
#02590F
ΔE00 6.19
Spruce
#0A5F38
ΔE00 6.26
Pine
#2B5D34
ΔE00 6.32
Darkish Green
#287C37
ΔE00 6.37
Forest Green
#2D5A27
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#126A2C #6A1250
analogous
#246A12 #126A2C #126A58
triadic
#126A2C #2C126A #6A2C12
tetradic
#126A2C #12246A #6A1250 #6A5812
square
#126A2C #12246A #6A1250 #6A5812
split-complementary
#126A2C #58126A #6A1224
monochromatic
#041A0B #093616 #126A2C #1B9E42 #24D357
Accessibility & contrast
On white
6.72
#126A2C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.12
#126A2C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #126A2C
6.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##126A2C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##126A2C | 1.00 | 6.72 | 3.12 | 6.72 |
| #FFFFFF | 6.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6B6026
Deuteranopia (green-blind)
#615931
Tritanopia (blue-blind)
#00685C
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #126a2c; /* rgb */ color: rgb(18, 106, 44); /* oklch */ color: oklch(46.0% 0.124 148.0);
Tailwind
colors: {
custom: {
50: '#619667',
500: '#126a2c',
950: '#000000',
},
}SCSS
$custom: #126a2c; $custom-light: #619667; $custom-dark: #000000;
JSON
{
"hex": "#126a2c",
"rgb": {
"r": 18,
"g": 106,
"b": 44
},
"hsl": {
"h": 137.727,
"s": 70.968,
"l": 24.314
},
"oklch": {
"l": 0.46044,
"c": 0.12436,
"h": 148
},
"luminance": 0.10619
}Semantic roles & 50–950 ramp
primary
#126A2C
secondary
#A23682
accent
#3AB9EE
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060D06
muted
#7A7E7A