#2F5216#2F5216

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

Color values

HEX#2F5216
RGBrgb(47, 82, 22)
HSLhsl(95, 58%, 20%)
HSVhsv(95, 73%, 32%)
CMYKcmyk(42.7%, 0%, 73.2%, 67.8%)
CIE-LABlab(31.11, -24.41, 30.05)
CIE-LCHlch(31.11, 38.72, 129.09°)
OKLaboklab(39.79% -0.0681 0.0687)
OKLCHoklch(39.79% 0.097 134.7)
XYZxyz(4.3343, 6.6966, 1.8231)
Luminance0.0670 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5216 #391652
analogous
#4D5216 #2F5216 #16521B
triadic
#2F5216 #162F52 #52162F
tetradic
#2F5216 #164D52 #391652 #521B16
square
#2F5216 #164D52 #391652 #521B16
split-complementary
#2F5216 #1B1652 #52164D
monochromatic
#0E1806 #132209 #2F5216 #4B8223 #66B330

Accessibility & contrast

On white

8.98
#2F5216 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5216
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5216#FFFFFF#000000##FFFFFF
##2F52161.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5216;
/* rgb */ color: rgb(47, 82, 22);
/* oklch */ color: oklch(39.8% 0.097 134.7);
Tailwind
colors: {
  custom: {
    50: '#6b8357',
    500: '#2f5216',
    950: '#000000',
  },
}
SCSS
$custom: #2f5216;
$custom-light: #6b8357;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5216",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 22
  },
  "hsl": {
    "h": 95,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.39787,
    "c": 0.09668,
    "h": 134.7
  },
  "luminance": 0.06697
}

Semantic roles & 50–950 ramp

primary
#2F5216
secondary
#683A89
accent
#47E1A1
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5216

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

Preview Lab → · Contrast checker → · Palette generator →

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