#2D501B#2D501B

#2D501B is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.1% C 0.090 H 136.5°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2D501B
RGBrgb(45, 80, 27)
HSLhsl(100, 50%, 21%)
HSVhsv(100, 66%, 31%)
CMYKcmyk(43.7%, 0%, 66.3%, 68.6%)
CIE-LABlab(30.34, -23.68, 26.70)
CIE-LCHlch(30.34, 35.69, 131.58°)
OKLaboklab(39.15% -0.0655 0.0623)
OKLCHoklch(39.15% 0.09 136.5)
XYZxyz(4.1486, 6.3741, 2.0484)
Luminance0.0637 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D501B #3E1B50
analogous
#47501B #2D501B #1B5023
triadic
#2D501B #1B2D50 #501B2D
tetradic
#2D501B #1B4750 #3E1B50 #50231B
square
#2D501B #1B4750 #3E1B50 #50231B
split-complementary
#2D501B #231B50 #501B47
monochromatic
#0D1708 #13220C #2D501B #477E2A #60AC3A

Accessibility & contrast

On white

9.23
#2D501B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2D501B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D501B
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D501B#FFFFFF#000000##FFFFFF
##2D501B1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534915
Deuteranopia (green-blind)
#4E461F
Tritanopia (blue-blind)
#2C4D45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d501b;
/* rgb */ color: rgb(45, 80, 27);
/* oklch */ color: oklch(39.1% 0.090 136.5);
Tailwind
colors: {
  custom: {
    50: '#69815a',
    500: '#2d501b',
    950: '#000000',
  },
}
SCSS
$custom: #2d501b;
$custom-light: #69815a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d501b",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 27
  },
  "hsl": {
    "h": 99.623,
    "s": 49.533,
    "l": 20.98
  },
  "oklch": {
    "l": 0.39145,
    "c": 0.09038,
    "h": 136.5
  },
  "luminance": 0.06374
}

Semantic roles & 50–950 ramp

primary
#2D501B
secondary
#6E4186
accent
#4FD9AA
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A04
muted
#7A7C79

Preview Lab

Preview with #2D501B

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

Preview Lab → · Contrast checker → · Palette generator →

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