#2F5B16#2F5B16

#2F5B16 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.4% C 0.110 H 136.5°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#2F5B16
RGBrgb(47, 91, 22)
HSLhsl(98, 61%, 22%)
HSVhsv(98, 76%, 36%)
CMYKcmyk(48.4%, 0%, 75.8%, 64.3%)
CIE-LABlab(34.28, -28.66, 33.36)
CIE-LCHlch(34.28, 43.98, 130.66°)
OKLaboklab(42.39% -0.0796 0.0756)
OKLCHoklch(42.39% 0.11 136.5)
XYZxyz(5.0581, 8.1441, 2.0644)
Luminance0.0814 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5B16 #42165B
analogous
#525B16 #2F5B16 #165B20
triadic
#2F5B16 #162F5B #5B162F
tetradic
#2F5B16 #16525B #42165B #5B2016
square
#2F5B16 #16525B #42165B #5B2016
split-complementary
#2F5B16 #20165B #5B1652
monochromatic
#0D1906 #162A0A #2F5B16 #488C22 #62BE2E

Accessibility & contrast

On white

7.99
#2F5B16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2F5B16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5B16
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5B16#FFFFFF#000000##FFFFFF
##2F5B161.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E530B
Deuteranopia (green-blind)
#584F1C
Tritanopia (blue-blind)
#2D574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5b16;
/* rgb */ color: rgb(47, 91, 22);
/* oklch */ color: oklch(42.4% 0.110 136.5);
Tailwind
colors: {
  custom: {
    50: '#6c8a58',
    500: '#2f5b16',
    950: '#000000',
  },
}
SCSS
$custom: #2f5b16;
$custom-light: #6c8a58;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5b16",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 22
  },
  "hsl": {
    "h": 98.261,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42387,
    "c": 0.10979,
    "h": 136.5
  },
  "luminance": 0.08144
}

Semantic roles & 50–950 ramp

primary
#2F5B16
secondary
#723B92
accent
#44E4AA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5B16

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

Preview Lab → · Contrast checker → · Palette generator →

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