#126C28#126C28
#126C28 is a mid, vivid green. Relative luminance 0.110; OKLCH L 46.6% C 0.131 H 146.7°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).
Color values
| HEX | #126C28 |
|---|---|
| RGB | rgb(18, 108, 40) |
| HSL | hsl(135, 71%, 25%) |
| HSV | hsv(135, 83%, 42%) |
| CMYK | cmyk(83.3%, 0%, 63%, 57.6%) |
| CIE-LAB | lab(39.59, -40.59, 30.40) |
| CIE-LCH | lch(39.59, 50.71, 143.17°) |
| OKLab | oklab(46.58% -0.1092 0.0717) |
| OKLCH | oklch(46.58% 0.131 146.7) |
| XYZ | xyz(5.9946, 11.0062, 3.8155) |
| Luminance | 0.1101 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 5.12
Darkish Green
#287C37
ΔE00 5.71
Deep Green
#02590F
ΔE00 6.39
Forest Green
#2D5A27
ΔE00 7.07
Pine
#2B5D34
ΔE00 7.37
Spruce
#0A5F38
ΔE00 7.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#126C28 #6C1256
analogous
#296C12 #126C28 #126C55
triadic
#126C28 #28126C #6C2812
tetradic
#126C28 #12296C #6C1256 #6C5512
square
#126C28 #12296C #6C1256 #6C5512
split-complementary
#126C28 #55126C #6C1229
monochromatic
#041A0A #093815 #126C28 #1BA03B #23D54F
Accessibility & contrast
On white
6.56
#126C28 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.20
#126C28 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #126C28
6.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##126C28 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##126C28 | 1.00 | 6.56 | 3.20 | 6.56 |
| #FFFFFF | 6.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6D6121
Deuteranopia (green-blind)
#645B2E
Tritanopia (blue-blind)
#00695D
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #126c28; /* rgb */ color: rgb(18, 108, 40); /* oklch */ color: oklch(46.6% 0.131 146.7);
Tailwind
colors: {
custom: {
50: '#629764',
500: '#126c28',
950: '#000000',
},
}SCSS
$custom: #126c28; $custom-light: #629764; $custom-dark: #000000;
JSON
{
"hex": "#126c28",
"rgb": {
"r": 18,
"g": 108,
"b": 40
},
"hsl": {
"h": 134.667,
"s": 71.429,
"l": 24.706
},
"oklch": {
"l": 0.46578,
"c": 0.13064,
"h": 146.7
},
"luminance": 0.11007
}Semantic roles & 50–950 ramp
primary
#126C28
secondary
#A33689
accent
#3AC2EE
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060D05
muted
#7A7E7A