#2E501B#2E501B

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

Color values

HEX#2E501B
RGBrgb(46, 80, 27)
HSLhsl(98, 50%, 21%)
HSVhsv(98, 66%, 31%)
CMYKcmyk(42.5%, 0%, 66.3%, 68.6%)
CIE-LABlab(30.39, -23.30, 26.78)
CIE-LCHlch(30.39, 35.49, 131.02°)
OKLaboklab(39.21% -0.0645 0.0624)
OKLCHoklch(39.21% 0.09 135.9)
XYZxyz(4.1931, 6.3971, 2.0505)
Luminance0.0640 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E501B #3D1B50
analogous
#48501B #2E501B #1B5022
triadic
#2E501B #1B2E50 #501B2E
tetradic
#2E501B #1B4850 #3D1B50 #50221B
square
#2E501B #1B4850 #3D1B50 #50221B
split-complementary
#2E501B #221B50 #501B48
monochromatic
#0D1708 #14220C #2E501B #487E2A #63AC3A

Accessibility & contrast

On white

9.21
#2E501B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2E501B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E501B
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E501B#FFFFFF#000000##FFFFFF
##2E501B1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e501b;
/* rgb */ color: rgb(46, 80, 27);
/* oklch */ color: oklch(39.2% 0.090 135.9);
Tailwind
colors: {
  custom: {
    50: '#6a815a',
    500: '#2e501b',
    950: '#000000',
  },
}
SCSS
$custom: #2e501b;
$custom-light: #6a815a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e501b",
  "rgb": {
    "r": 46,
    "g": 80,
    "b": 27
  },
  "hsl": {
    "h": 98.491,
    "s": 49.533,
    "l": 20.98
  },
  "oklch": {
    "l": 0.39205,
    "c": 0.08978,
    "h": 135.9
  },
  "luminance": 0.06397
}

Semantic roles & 50–950 ramp

primary
#2E501B
secondary
#6D4186
accent
#4FD9A7
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A04
muted
#7A7C79

Preview Lab

Preview with #2E501B

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

Preview Lab → · Contrast checker → · Palette generator →

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