#2F5517#2F5517

#2F5517 is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 40.7% C 0.100 H 135.6°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#2F5517
RGBrgb(47, 85, 23)
HSLhsl(97, 57%, 21%)
HSVhsv(97, 73%, 33%)
CMYKcmyk(44.7%, 0%, 72.9%, 66.7%)
CIE-LABlab(32.18, -25.77, 30.72)
CIE-LCHlch(32.18, 40.09, 129.99°)
OKLaboklab(40.66% -0.0717 0.0702)
OKLCHoklch(40.66% 0.1 135.6)
XYZxyz(4.5753, 7.1630, 1.9520)
Luminance0.0716 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5517 #3D1755
analogous
#4E5517 #2F5517 #17551E
triadic
#2F5517 #172F55 #55172F
tetradic
#2F5517 #174E55 #3D1755 #551E17
square
#2F5517 #174E55 #3D1755 #551E17
split-complementary
#2F5517 #1E1755 #55174E
monochromatic
#0D1807 #14250A #2F5517 #4A8524 #64B531

Accessibility & contrast

On white

8.63
#2F5517 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2F5517 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5517
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5517#FFFFFF#000000##FFFFFF
##2F55171.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E0E
Deuteranopia (green-blind)
#534B1C
Tritanopia (blue-blind)
#2E5248
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f5517;
/* rgb */ color: rgb(47, 85, 23);
/* oklch */ color: oklch(40.7% 0.100 135.6);
Tailwind
colors: {
  custom: {
    50: '#6b8558',
    500: '#2f5517',
    950: '#000000',
  },
}
SCSS
$custom: #2f5517;
$custom-light: #6b8558;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5517",
  "rgb": {
    "r": 47,
    "g": 85,
    "b": 23
  },
  "hsl": {
    "h": 96.774,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.40664,
    "c": 0.10033,
    "h": 135.6
  },
  "luminance": 0.07163
}

Semantic roles & 50–950 ramp

primary
#2F5517
secondary
#6D3C8C
accent
#47E1A5
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5517

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

Preview Lab → · Contrast checker → · Palette generator →

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