#2F7012#2F7012
#2F7012 is a mid, vivid green. Relative luminance 0.122; OKLCH L 48.4% C 0.140 H 138.4°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7012 |
|---|---|
| RGB | rgb(47, 112, 18) |
| HSL | hsl(101, 72%, 25%) |
| HSV | hsv(101, 84%, 44%) |
| CMYK | cmyk(58%, 0%, 83.9%, 56.1%) |
| CIE-LAB | lab(41.59, -37.89, 41.99) |
| CIE-LCH | lch(41.59, 56.56, 132.07°) |
| OKLab | oklab(48.39% -0.1047 0.093) |
| OKLCH | oklch(48.39% 0.14 138.4) |
| XYZ | xyz(7.0754, 12.2358, 2.5610) |
| Luminance | 0.1224 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 4.86
Darkgreen
#006400
ΔE00 5.13
Dark Grass Green
#388004
ΔE00 6.03
Green
#008000
ΔE00 6.15
Darkish Green
#287C37
ΔE00 6.62
Darkolivegreen
#556B2F
ΔE00 8.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7012 #531270
analogous
#5E7012 #2F7012 #127024
triadic
#2F7012 #122F70 #70122F
tetradic
#2F7012 #125E70 #531270 #702412
square
#2F7012 #125E70 #531270 #702412
split-complementary
#2F7012 #241270 #70125E
monochromatic
#0B1A04 #193B0A #2F7012 #45A51A #5BD923
Accessibility & contrast
On white
6.09
#2F7012 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.45
#2F7012 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7012
6.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7012 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7012 | 1.00 | 6.09 | 3.45 | 6.09 |
| #FFFFFF | 6.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#746500
Deuteranopia (green-blind)
#6C601D
Tritanopia (blue-blind)
#296C5F
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #2f7012; /* rgb */ color: rgb(47, 112, 18); /* oklch */ color: oklch(48.4% 0.140 138.4);
Tailwind
colors: {
custom: {
50: '#709a59',
500: '#2f7012',
950: '#000000',
},
}SCSS
$custom: #2f7012; $custom-light: #709a59; $custom-dark: #000000;
JSON
{
"hex": "#2f7012",
"rgb": {
"r": 47,
"g": 112,
"b": 18
},
"hsl": {
"h": 101.489,
"s": 72.308,
"l": 25.49
},
"oklch": {
"l": 0.48393,
"c": 0.14008,
"h": 138.4
},
"luminance": 0.12236
}Semantic roles & 50–950 ramp
primary
#2F7012
secondary
#8437A7
accent
#39EFB7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79