#317E12#317E12
#317E12 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.156 H 139.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #317E12 |
|---|---|
| RGB | rgb(49, 126, 18) |
| HSL | hsl(103, 75%, 28%) |
| HSV | hsv(103, 86%, 49%) |
| CMYK | cmyk(61.1%, 0%, 85.7%, 50.6%) |
| CIE-LAB | lab(46.47, -42.76, 46.50) |
| CIE-LCH | lch(46.47, 63.17, 132.60°) |
| OKLab | oklab(52.45% -0.1179 0.1025) |
| OKLCH | oklch(52.45% 0.156 139) |
| XYZ | xyz(8.8363, 15.6176, 3.1210) |
| Luminance | 0.1562 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.21
Dark Grass Green
#388004
ΔE00 1.75
Green
#008000
ΔE00 2.76
Forestgreen (CSS)
#228B22
ΔE00 4.92
Darkish Green
#287C37
ΔE00 6.07
Avocado
#568203
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#317E12 #5F127E
analogous
#677E12 #317E12 #127E29
triadic
#317E12 #12317E #7E1231
tetradic
#317E12 #12677E #5F127E #7E2912
square
#317E12 #12677E #5F127E #7E2912
split-complementary
#317E12 #29127E #7E1267
monochromatic
#0A1B04 #1C480A #317E12 #46B41A #5EE12A
Accessibility & contrast
On white
5.09
#317E12 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#317E12 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #317E12
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##317E12 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##317E12 | 1.00 | 5.09 | 4.12 | 5.09 |
| #FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#786C20
Tritanopia (blue-blind)
#28796B
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #317e12; /* rgb */ color: rgb(49, 126, 18); /* oklch */ color: oklch(52.4% 0.156 139.0);
Tailwind
colors: {
custom: {
50: '#74a45b',
500: '#317e12',
950: '#000000',
},
}SCSS
$custom: #317e12; $custom-light: #74a45b; $custom-dark: #000000;
JSON
{
"hex": "#317e12",
"rgb": {
"r": 49,
"g": 126,
"b": 18
},
"hsl": {
"h": 102.778,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.52445,
"c": 0.1562,
"h": 139
},
"luminance": 0.15618
}Semantic roles & 50–950 ramp
primary
#317E12
secondary
#9038B4
accent
#36F2BC
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79