#2F501D#2F501D

#2F501D is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.3% C 0.087 H 136.0°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#2F501D
RGBrgb(47, 80, 29)
HSLhsl(99, 47%, 21%)
HSVhsv(99, 64%, 31%)
CMYKcmyk(41.3%, 0%, 63.7%, 68.6%)
CIE-LABlab(30.47, -22.67, 25.83)
CIE-LCHlch(30.47, 34.37, 131.27°)
OKLaboklab(39.29% -0.0627 0.0606)
OKLCHoklch(39.29% 0.087 136)
XYZxyz(4.2626, 6.4302, 2.1787)
Luminance0.0643 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F501D #3E1D50
analogous
#49501D #2F501D #1D5025
triadic
#2F501D #1D2F50 #501D2F
tetradic
#2F501D #1D4950 #3E1D50 #50251D
square
#2F501D #1D4950 #3E1D50 #50251D
split-complementary
#2F501D #251D50 #501D49
monochromatic
#0D1608 #15230D #2F501D #497D2D #64AA3E

Accessibility & contrast

On white

9.19
#2F501D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F501D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F501D
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F501D#FFFFFF#000000##FFFFFF
##2F501D1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534A18
Deuteranopia (green-blind)
#4E4721
Tritanopia (blue-blind)
#2E4D45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f501d;
/* rgb */ color: rgb(47, 80, 29);
/* oklch */ color: oklch(39.3% 0.087 136.0);
Tailwind
colors: {
  custom: {
    50: '#6a815b',
    500: '#2f501d',
    950: '#000000',
  },
}
SCSS
$custom: #2f501d;
$custom-light: #6a815b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f501d",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 29
  },
  "hsl": {
    "h": 98.824,
    "s": 46.789,
    "l": 21.373
  },
  "oklch": {
    "l": 0.39293,
    "c": 0.08721,
    "h": 136
  },
  "luminance": 0.0643
}

Semantic roles & 50–950 ramp

primary
#2F501D
secondary
#6E4485
accent
#51D6A7
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A04
muted
#7A7C79

Preview Lab

Preview with #2F501D

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

Preview Lab → · Contrast checker → · Palette generator →

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