#2F4812#2F4812

#2F4812 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.9% C 0.085 H 130.9°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#2F4812
RGBrgb(47, 72, 18)
HSLhsl(88, 60%, 18%)
HSVhsv(88, 75%, 28%)
CMYKcmyk(34.7%, 0%, 75%, 71.8%)
CIE-LABlab(27.53, -19.71, 28.16)
CIE-LCHlch(27.53, 34.38, 124.99°)
OKLaboklab(36.85% -0.0556 0.0641)
OKLCHoklch(36.85% 0.085 130.9)
XYZxyz(3.5988, 5.2826, 1.4022)
Luminance0.0528 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4812 #2B1248
analogous
#484612 #2F4812 #144812
triadic
#2F4812 #122F48 #48122F
tetradic
#2F4812 #124846 #2B1248 #481214
square
#2F4812 #124846 #2B1248 #481214
split-complementary
#2F4812 #121448 #461248
monochromatic
#101806 #101806 #2F4812 #4F791E #6FAA2A

Accessibility & contrast

On white

10.21
#2F4812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F4812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4812
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4812#FFFFFF#000000##FFFFFF
##2F48121.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B420A
Deuteranopia (green-blind)
#484017
Tritanopia (blue-blind)
#30453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f4812;
/* rgb */ color: rgb(47, 72, 18);
/* oklch */ color: oklch(36.9% 0.085 130.9);
Tailwind
colors: {
  custom: {
    50: '#6a7b53',
    500: '#2f4812',
    950: '#000000',
  },
}
SCSS
$custom: #2f4812;
$custom-light: #6a7b53;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4812",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 87.778,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.36854,
    "c": 0.08485,
    "h": 130.9
  },
  "luminance": 0.05283
}

Semantic roles & 50–950 ramp

primary
#2F4812
secondary
#583581
accent
#45E38E
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #2F4812

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2F4812 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva