#2F4712#2F4712

#2F4712 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.6% C 0.083 H 130.6°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#2F4712
RGBrgb(47, 71, 18)
HSLhsl(87, 60%, 17%)
HSVhsv(87, 75%, 28%)
CMYKcmyk(33.8%, 0%, 74.6%, 72.2%)
CIE-LABlab(27.17, -19.18, 27.79)
CIE-LCHlch(27.17, 33.77, 124.62°)
OKLaboklab(36.57% -0.0542 0.0633)
OKLCHoklch(36.57% 0.083 130.6)
XYZxyz(3.5347, 5.1544, 1.3808)
Luminance0.0515 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4712 #2A1247
analogous
#474512 #2F4712 #144712
triadic
#2F4712 #122F47 #47122F
tetradic
#2F4712 #124745 #2A1247 #471214
square
#2F4712 #124745 #2A1247 #471214
split-complementary
#2F4712 #121447 #451247
monochromatic
#101806 #101806 #2F4712 #4F781E #70A92B

Accessibility & contrast

On white

10.34
#2F4712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F4712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4712
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4712#FFFFFF#000000##FFFFFF
##2F47121.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A410B
Deuteranopia (green-blind)
#474016
Tritanopia (blue-blind)
#30443C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f4712;
/* rgb */ color: rgb(47, 71, 18);
/* oklch */ color: oklch(36.6% 0.083 130.6);
Tailwind
colors: {
  custom: {
    50: '#6a7a53',
    500: '#2f4712',
    950: '#000000',
  },
}
SCSS
$custom: #2f4712;
$custom-light: #6a7a53;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4712",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 18
  },
  "hsl": {
    "h": 87.17,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36565,
    "c": 0.08332,
    "h": 130.6
  },
  "luminance": 0.05154
}

Semantic roles & 50–950 ramp

primary
#2F4712
secondary
#573580
accent
#45E38C
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2F4712

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

Preview Lab → · Contrast checker → · Palette generator →

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