#2F4816#2F4816

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

Color values

HEX#2F4816
RGBrgb(47, 72, 22)
HSLhsl(90, 53%, 18%)
HSVhsv(90, 69%, 28%)
CMYKcmyk(34.7%, 0%, 69.4%, 71.8%)
CIE-LABlab(27.56, -19.33, 26.23)
CIE-LCHlch(27.56, 32.58, 126.39°)
OKLaboklab(36.9% -0.0542 0.0606)
OKLCHoklch(36.9% 0.081 131.8)
XYZxyz(3.6344, 5.2969, 1.5898)
Luminance0.0530 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4816 #2F1648
analogous
#484816 #2F4816 #164816
triadic
#2F4816 #162F48 #48162F
tetradic
#2F4816 #164848 #2F1648 #481616
square
#2F4816 #164848 #2F1648 #481616
split-complementary
#2F4816 #161648 #481648
monochromatic
#0F1707 #101908 #2F4816 #4E7724 #6CA633

Accessibility & contrast

On white

10.20
#2F4816 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4816
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4816#FFFFFF#000000##FFFFFF
##2F48161.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4210
Deuteranopia (green-blind)
#48401A
Tritanopia (blue-blind)
#30453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f4816;
/* rgb */ color: rgb(47, 72, 22);
/* oklch */ color: oklch(36.9% 0.081 131.8);
Tailwind
colors: {
  custom: {
    50: '#6a7b56',
    500: '#2f4816',
    950: '#000000',
  },
}
SCSS
$custom: #2f4816;
$custom-light: #6a7b56;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4816",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 22
  },
  "hsl": {
    "h": 90,
    "s": 53.191,
    "l": 18.431
  },
  "oklch": {
    "l": 0.36899,
    "c": 0.08129,
    "h": 131.8
  },
  "luminance": 0.05297
}

Semantic roles & 50–950 ramp

primary
#2F4816
secondary
#5D3A7F
accent
#4BDD94
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4816

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

Preview Lab → · Contrast checker → · Palette generator →

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