#2F5217#2F5217

#2F5217 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.8% C 0.096 H 134.9°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#2F5217
RGBrgb(47, 82, 23)
HSLhsl(96, 56%, 21%)
HSVhsv(96, 72%, 32%)
CMYKcmyk(42.7%, 0%, 72%, 67.8%)
CIE-LABlab(31.12, -24.32, 29.59)
CIE-LCHlch(31.12, 38.30, 129.41°)
OKLaboklab(39.8% -0.0677 0.0678)
OKLCHoklch(39.8% 0.096 134.9)
XYZxyz(4.3441, 6.7006, 1.8749)
Luminance0.0670 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5217 #3A1752
analogous
#4C5217 #2F5217 #17521C
triadic
#2F5217 #172F52 #52172F
tetradic
#2F5217 #174C52 #3A1752 #521C17
square
#2F5217 #174C52 #3A1752 #521C17
split-complementary
#2F5217 #1C1752 #52174C
monochromatic
#0E1807 #14220A #2F5217 #4A8224 #66B232

Accessibility & contrast

On white

8.97
#2F5217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F5217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5217
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5217#FFFFFF#000000##FFFFFF
##2F52171.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B0F
Deuteranopia (green-blind)
#50481C
Tritanopia (blue-blind)
#2E4F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f5217;
/* rgb */ color: rgb(47, 82, 23);
/* oklch */ color: oklch(39.8% 0.096 134.9);
Tailwind
colors: {
  custom: {
    50: '#6b8357',
    500: '#2f5217',
    950: '#000000',
  },
}
SCSS
$custom: #2f5217;
$custom-light: #6b8357;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5217",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 23
  },
  "hsl": {
    "h": 95.593,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.39797,
    "c": 0.09585,
    "h": 134.9
  },
  "luminance": 0.06701
}

Semantic roles & 50–950 ramp

primary
#2F5217
secondary
#6A3C89
accent
#48DFA2
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5217

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

Preview Lab → · Contrast checker → · Palette generator →

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