#2F5B17#2F5B17

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

Color values

HEX#2F5B17
RGBrgb(47, 91, 23)
HSLhsl(99, 60%, 22%)
HSVhsv(99, 75%, 36%)
CMYKcmyk(48.4%, 0%, 74.7%, 64.3%)
CIE-LABlab(34.29, -28.57, 32.93)
CIE-LCHlch(34.29, 43.60, 130.94°)
OKLaboklab(42.4% -0.0793 0.0749)
OKLCHoklch(42.4% 0.109 136.6)
XYZxyz(5.0679, 8.1481, 2.1161)
Luminance0.0815 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5B17 #43175B
analogous
#515B17 #2F5B17 #175B21
triadic
#2F5B17 #172F5B #5B172F
tetradic
#2F5B17 #17515B #43175B #5B2117
square
#2F5B17 #17515B #43175B #5B2117
split-complementary
#2F5B17 #21175B #5B1751
monochromatic
#0D1806 #162A0B #2F5B17 #488C23 #61BD30

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F5B17#FFFFFF#000000##FFFFFF
##2F5B171.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)
#5E530D
Deuteranopia (green-blind)
#584F1D
Tritanopia (blue-blind)
#2D574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5b17;
/* rgb */ color: rgb(47, 91, 23);
/* oklch */ color: oklch(42.4% 0.109 136.6);
Tailwind
colors: {
  custom: {
    50: '#6c8a58',
    500: '#2f5b17',
    950: '#000000',
  },
}
SCSS
$custom: #2f5b17;
$custom-light: #6c8a58;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5b17",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 23
  },
  "hsl": {
    "h": 98.824,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42396,
    "c": 0.10905,
    "h": 136.6
  },
  "luminance": 0.08148
}

Semantic roles & 50–950 ramp

primary
#2F5B17
secondary
#743C92
accent
#45E3AB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5B17

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

Preview Lab → · Contrast checker → · Palette generator →

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