#2F5016#2F5016

#2F5016 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.094 H 134.3°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#2F5016
RGBrgb(47, 80, 22)
HSLhsl(94, 57%, 20%)
HSVhsv(94, 73%, 31%)
CMYKcmyk(41.3%, 0%, 72.5%, 68.6%)
CIE-LABlab(30.40, -23.43, 29.30)
CIE-LCHlch(30.40, 37.51, 128.64°)
OKLaboklab(39.21% -0.0654 0.0671)
OKLCHoklch(39.21% 0.094 134.3)
XYZxyz(4.1857, 6.3994, 1.7736)
Luminance0.0640 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5016 #371650
analogous
#4C5016 #2F5016 #16501A
triadic
#2F5016 #162F50 #50162F
tetradic
#2F5016 #164C50 #371650 #501A16
square
#2F5016 #164C50 #371650 #501A16
split-complementary
#2F5016 #1A1650 #50164C
monochromatic
#0E1807 #132009 #2F5016 #4B8023 #67B030

Accessibility & contrast

On white

9.21
#2F5016 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F5016 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5016
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5016#FFFFFF#000000##FFFFFF
##2F50161.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53490E
Deuteranopia (green-blind)
#4F471B
Tritanopia (blue-blind)
#2F4D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f5016;
/* rgb */ color: rgb(47, 80, 22);
/* oklch */ color: oklch(39.2% 0.094 134.3);
Tailwind
colors: {
  custom: {
    50: '#6b8156',
    500: '#2f5016',
    950: '#000000',
  },
}
SCSS
$custom: #2f5016;
$custom-light: #6b8156;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5016",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 22
  },
  "hsl": {
    "h": 94.138,
    "s": 56.863,
    "l": 20
  },
  "oklch": {
    "l": 0.39209,
    "c": 0.09368,
    "h": 134.3
  },
  "luminance": 0.064
}

Semantic roles & 50–950 ramp

primary
#2F5016
secondary
#663A87
accent
#48E09E
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5016

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

Preview Lab → · Contrast checker → · Palette generator →

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