#128A1F#128A1F
#128A1F is a mid, vivid green. Relative luminance 0.184; OKLCH L 55.2% C 0.173 H 143.8°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).
Color values
| HEX | #128A1F |
|---|---|
| RGB | rgb(18, 138, 31) |
| HSL | hsl(127, 77%, 31%) |
| HSV | hsv(127, 87%, 54%) |
| CMYK | cmyk(87%, 0%, 77.5%, 45.9%) |
| CIE-LAB | lab(49.98, -51.68, 45.43) |
| CIE-LCH | lch(49.98, 68.80, 138.68°) |
| OKLab | oklab(55.19% -0.1397 0.1024) |
| OKLCH | oklch(55.19% 0.173 143.8) |
| XYZ | xyz(9.5846, 18.4033, 4.3431) |
| Luminance | 0.1840 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 0.89
Emerald Green
#028F1E
ΔE00 1.77
Irish Green
#019529
ΔE00 3.85
Green
#008000
ΔE00 4.02
Kelley Green
#009337
ΔE00 4.14
True Green
#089404
ΔE00 4.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#128A1F #8A127D
analogous
#418A12 #128A1F #128A5B
triadic
#128A1F #1F128A #8A1F12
tetradic
#128A1F #12418A #8A127D #8A5B12
square
#128A1F #12418A #8A127D #8A5B12
split-complementary
#128A1F #5B128A #8A1241
monochromatic
#041E07 #0B5413 #128A1F #19C02B #32E445
Accessibility & contrast
On white
4.49
#128A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.68
#128A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #128A1F
4.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##128A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##128A1F | 1.00 | 4.49 | 4.68 | 4.68 |
| #FFFFFF | 4.49 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7C07
Deuteranopia (green-blind)
#81742B
Tritanopia (blue-blind)
#008676
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #128a1f; /* rgb */ color: rgb(18, 138, 31); /* oklch */ color: oklch(55.2% 0.173 143.8);
Tailwind
colors: {
custom: {
50: '#6bad63',
500: '#128a1f',
950: '#000000',
},
}SCSS
$custom: #128a1f; $custom-light: #6bad63; $custom-dark: #000000;
JSON
{
"hex": "#128a1f",
"rgb": {
"r": 18,
"g": 138,
"b": 31
},
"hsl": {
"h": 126.5,
"s": 76.923,
"l": 30.588
},
"oklch": {
"l": 0.55193,
"c": 0.17321,
"h": 143.8
},
"luminance": 0.18404
}Semantic roles & 50–950 ramp
primary
#128A1F
secondary
#BF39B0
accent
#34DFF3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A