#2F7215#2F7215
#2F7215 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.0% C 0.141 H 138.8°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7215 |
|---|---|
| RGB | rgb(47, 114, 21) |
| HSL | hsl(103, 69%, 26%) |
| HSV | hsv(103, 82%, 45%) |
| CMYK | cmyk(58.8%, 0%, 81.6%, 55.3%) |
| CIE-LAB | lab(42.30, -38.50, 41.67) |
| CIE-LCH | lch(42.30, 56.73, 132.74°) |
| OKLab | oklab(48.98% -0.1062 0.0928) |
| OKLCH | oklch(48.98% 0.141 138.8) |
| XYZ | xyz(7.3247, 12.6925, 2.7732) |
| Luminance | 0.1269 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 4.18
Dark Grass Green
#388004
ΔE00 5.52
Green
#008000
ΔE00 5.59
Darkgreen
#006400
ΔE00 5.61
Darkish Green
#287C37
ΔE00 6.03
Darkolivegreen
#556B2F
ΔE00 8.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7215 #581572
analogous
#5E7215 #2F7215 #15722A
triadic
#2F7215 #152F72 #72152F
tetradic
#2F7215 #155E72 #581572 #722A15
square
#2F7215 #155E72 #581572 #722A15
split-complementary
#2F7215 #2A1572 #72155E
monochromatic
#0B1A05 #1A3E0B #2F7215 #44A61F #5AD82A
Accessibility & contrast
On white
5.93
#2F7215 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#2F7215 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7215
5.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7215 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7215 | 1.00 | 5.93 | 3.54 | 5.93 |
| #FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6D6220
Tritanopia (blue-blind)
#286E61
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #2f7215; /* rgb */ color: rgb(47, 114, 21); /* oklch */ color: oklch(49.0% 0.141 138.8);
Tailwind
colors: {
custom: {
50: '#709b5b',
500: '#2f7215',
950: '#000000',
},
}SCSS
$custom: #2f7215; $custom-light: #709b5b; $custom-dark: #000000;
JSON
{
"hex": "#2f7215",
"rgb": {
"r": 47,
"g": 114,
"b": 21
},
"hsl": {
"h": 103.226,
"s": 68.889,
"l": 26.471
},
"oklch": {
"l": 0.48983,
"c": 0.14104,
"h": 138.8
},
"luminance": 0.12693
}Semantic roles & 50–950 ramp
primary
#2F7215
secondary
#8A3BA8
accent
#3CECBB
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79