#317F1F#317F1F
#317F1F is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.151 H 140.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #317F1F |
|---|---|
| RGB | rgb(49, 127, 31) |
| HSL | hsl(109, 61%, 31%) |
| HSV | hsv(109, 76%, 50%) |
| CMYK | cmyk(61.4%, 0%, 75.6%, 50.2%) |
| CIE-LAB | lab(46.88, -42.28, 42.54) |
| CIE-LCH | lch(46.88, 59.98, 134.83°) |
| OKLab | oklab(52.81% -0.1159 0.0961) |
| OKLCH | oklch(52.81% 0.151 140.3) |
| XYZ | xyz(9.1029, 15.9298, 3.8911) |
| Luminance | 0.1593 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.86
Dark Grass Green
#388004
ΔE00 2.91
Green
#008000
ΔE00 3.12
Forestgreen (CSS)
#228B22
ΔE00 4.35
Darkish Green
#287C37
ΔE00 4.79
Emerald Green
#028F1E
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#317F1F #6D1F7F
analogous
#617F1F #317F1F #1F7F3D
triadic
#317F1F #1F317F #7F1F31
tetradic
#317F1F #1F617F #6D1F7F #7F3D1F
square
#317F1F #1F617F #6D1F7F #7F3D1F
split-complementary
#317F1F #3D1F7F #7F1F61
monochromatic
#0B1D07 #1E4E13 #317F1F #44B02B #61D246
Accessibility & contrast
On white
5.02
#317F1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.19
#317F1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #317F1F
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##317F1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##317F1F | 1.00 | 5.02 | 4.19 | 5.02 |
| #FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#83730D
Deuteranopia (green-blind)
#796D29
Tritanopia (blue-blind)
#267B6C
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #317f1f; /* rgb */ color: rgb(49, 127, 31); /* oklch */ color: oklch(52.8% 0.151 140.3);
Tailwind
colors: {
custom: {
50: '#73a561',
500: '#317f1f',
950: '#000000',
},
}SCSS
$custom: #317f1f; $custom-light: #73a561; $custom-dark: #000000;
JSON
{
"hex": "#317f1f",
"rgb": {
"r": 49,
"g": 127,
"b": 31
},
"hsl": {
"h": 108.75,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.5281,
"c": 0.15058,
"h": 140.3
},
"luminance": 0.15931
}Semantic roles & 50–950 ramp
primary
#317F1F
secondary
#9E48B2
accent
#44E4C6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A