#298A1F#298A1F
#298A1F is a mid, vivid green. Relative luminance 0.187; OKLCH L 55.6% C 0.167 H 141.8°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #298A1F |
|---|---|
| RGB | rgb(41, 138, 31) |
| HSL | hsl(114, 63%, 33%) |
| HSV | hsv(114, 78%, 54%) |
| CMYK | cmyk(70.3%, 0%, 77.5%, 45.9%) |
| CIE-LAB | lab(50.39, -48.17, 45.97) |
| CIE-LCH | lch(50.39, 66.58, 136.34°) |
| OKLab | oklab(55.65% -0.1313 0.1033) |
| OKLCH | oklch(55.65% 0.167 141.8) |
| XYZ | xyz(10.2497, 18.7462, 4.3743) |
| Luminance | 0.1875 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 0.74
Emerald Green
#028F1E
ΔE00 2.24
True Green
#089404
ΔE00 4.03
Irish Green
#019529
ΔE00 4.09
Tree Green
#2A7E19
ΔE00 4.26
Green
#008000
ΔE00 4.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#298A1F #801F8A
analogous
#5E8A1F #298A1F #1F8A4B
triadic
#298A1F #1F298A #8A1F29
tetradic
#298A1F #1F5E8A #801F8A #8A4B1F
square
#298A1F #1F5E8A #801F8A #8A4B1F
split-complementary
#298A1F #4B1F8A #8A1F5E
monochromatic
#0B2609 #1A5814 #298A1F #38BC2A #59D74C
Accessibility & contrast
On white
4.42
#298A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.75
#298A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #298A1F
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##298A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##298A1F | 1.00 | 4.42 | 4.75 | 4.75 |
| #FFFFFF | 4.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7D07
Deuteranopia (green-blind)
#82752B
Tritanopia (blue-blind)
#128676
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #298a1f; /* rgb */ color: rgb(41, 138, 31); /* oklch */ color: oklch(55.6% 0.167 141.8);
Tailwind
colors: {
custom: {
50: '#72ad63',
500: '#298a1f',
950: '#000000',
},
}SCSS
$custom: #298a1f; $custom-light: #72ad63; $custom-dark: #000000;
JSON
{
"hex": "#298a1f",
"rgb": {
"r": 41,
"g": 138,
"b": 31
},
"hsl": {
"h": 114.393,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.55649,
"c": 0.1671,
"h": 141.8
},
"luminance": 0.18747
}Semantic roles & 50–950 ramp
primary
#298A1F
secondary
#AF4BBA
accent
#41E6D7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A