#298C1F#298C1F
#298C1F is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.2% C 0.169 H 141.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #298C1F |
|---|---|
| RGB | rgb(41, 140, 31) |
| HSL | hsl(114, 64%, 34%) |
| HSV | hsv(114, 78%, 55%) |
| CMYK | cmyk(70.7%, 0%, 77.9%, 45.1%) |
| CIE-LAB | lab(51.07, -48.86, 46.63) |
| CIE-LCH | lch(51.07, 67.55, 136.34°) |
| OKLab | oklab(56.21% -0.1332 0.1047) |
| OKLCH | oklch(56.21% 0.169 141.8) |
| XYZ | xyz(10.5393, 19.3254, 4.4708) |
| Luminance | 0.1933 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 0.86
Emerald Green
#028F1E
ΔE00 1.83
True Green
#089404
ΔE00 3.40
Irish Green
#019529
ΔE00 3.51
Kelley Green
#009337
ΔE00 4.31
Green
#008000
ΔE00 4.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#298C1F #821F8C
analogous
#5F8C1F #298C1F #1F8C4B
triadic
#298C1F #1F298C #8C1F29
tetradic
#298C1F #1F5F8C #821F8C #8C4B1F
square
#298C1F #1F5F8C #821F8C #8C4B1F
split-complementary
#298C1F #4B1F8C #8C1F5F
monochromatic
#0C2809 #1A5A14 #298C1F #38BE2A #5AD84E
Accessibility & contrast
On white
4.32
#298C1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.87
#298C1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #298C1F
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##298C1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##298C1F | 1.00 | 4.32 | 4.87 | 4.87 |
| #FFFFFF | 4.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8F7E06
Deuteranopia (green-blind)
#84772B
Tritanopia (blue-blind)
#108877
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #298c1f; /* rgb */ color: rgb(41, 140, 31); /* oklch */ color: oklch(56.2% 0.169 141.8);
Tailwind
colors: {
custom: {
50: '#72af63',
500: '#298c1f',
950: '#000000',
},
}SCSS
$custom: #298c1f; $custom-light: #72af63; $custom-dark: #000000;
JSON
{
"hex": "#298c1f",
"rgb": {
"r": 41,
"g": 140,
"b": 31
},
"hsl": {
"h": 114.495,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.56211,
"c": 0.16943,
"h": 141.8
},
"luminance": 0.19327
}Semantic roles & 50–950 ramp
primary
#298C1F
secondary
#B04CBB
accent
#41E7D8
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A