#1F7628#1F7628
#1F7628 is a mid, vivid green. Relative luminance 0.134; OKLCH L 49.8% C 0.140 H 144.6°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).
Color values
| HEX | #1F7628 |
|---|---|
| RGB | rgb(31, 118, 40) |
| HSL | hsl(126, 58%, 29%) |
| HSV | hsv(126, 74%, 46%) |
| CMYK | cmyk(73.7%, 0%, 66.1%, 53.7%) |
| CIE-LAB | lab(43.36, -42.11, 34.76) |
| CIE-LCH | lch(43.36, 54.60, 140.47°) |
| OKLab | oklab(49.78% -0.1139 0.081) |
| OKLCH | oklch(49.78% 0.14 144.6) |
| XYZ | xyz(7.4260, 13.4006, 4.2023) |
| Luminance | 0.1340 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 2.90
Tree Green
#2A7E19
ΔE00 4.31
Green
#008000
ΔE00 5.65
Jungle Green
#048243
ΔE00 5.95
Darkgreen
#006400
ΔE00 6.79
Dark Grass Green
#388004
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F7628 #761F6D
analogous
#42761F #1F7628 #1F7654
triadic
#1F7628 #281F76 #76281F
tetradic
#1F7628 #1F4276 #761F6D #76541F
square
#1F7628 #1F4276 #761F6D #76541F
split-complementary
#1F7628 #541F76 #761F42
monochromatic
#061808 #124618 #1F7628 #2CA638 #42CD50
Accessibility & contrast
On white
5.71
#1F7628 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.68
#1F7628 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #1F7628
5.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F7628 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F7628 | 1.00 | 5.71 | 3.68 | 5.71 |
| #FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#786B1F
Deuteranopia (green-blind)
#6E642F
Tritanopia (blue-blind)
#007366
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #1f7628; /* rgb */ color: rgb(31, 118, 40); /* oklch */ color: oklch(49.8% 0.140 144.6);
Tailwind
colors: {
custom: {
50: '#699e65',
500: '#1f7628',
950: '#000000',
},
}SCSS
$custom: #1f7628; $custom-light: #699e65; $custom-dark: #000000;
JSON
{
"hex": "#1f7628",
"rgb": {
"r": 31,
"g": 118,
"b": 40
},
"hsl": {
"h": 126.207,
"s": 58.389,
"l": 29.216
},
"oklch": {
"l": 0.49778,
"c": 0.13977,
"h": 144.6
},
"luminance": 0.13401
}Semantic roles & 50–950 ramp
primary
#1F7628
secondary
#AA479F
accent
#46D2E2
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E06
muted
#7A7E7A