#2A5B0D#2A5B0D

#2A5B0D is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.1% C 0.118 H 136.9°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#2A5B0D
RGBrgb(42, 91, 13)
HSLhsl(98, 75%, 20%)
HSVhsv(98, 86%, 36%)
CMYKcmyk(53.8%, 0%, 85.7%, 64.3%)
CIE-LABlab(33.99, -31.06, 36.46)
CIE-LCHlch(33.99, 47.89, 130.43°)
OKLaboklab(42.06% -0.0863 0.0807)
OKLCHoklch(42.06% 0.118 136.9)
XYZxyz(4.7684, 8.0031, 1.6742)
Luminance0.0800 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5B0D #3E0D5B
analogous
#515B0D #2A5B0D #0D5B17
triadic
#2A5B0D #0D2A5B #5B0D2A
tetradic
#2A5B0D #0D515B #3E0D5B #5B170D
square
#2A5B0D #0D515B #3E0D5B #5B170D
split-complementary
#2A5B0D #170D5B #5B0D51
monochromatic
#0C1B04 #112505 #2A5B0D #439115 #5BC61C

Accessibility & contrast

On white

8.08
#2A5B0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2A5B0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5B0D
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5B0D#FFFFFF#000000##FFFFFF
##2A5B0D1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5200
Deuteranopia (green-blind)
#584E16
Tritanopia (blue-blind)
#27574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a5b0d;
/* rgb */ color: rgb(42, 91, 13);
/* oklch */ color: oklch(42.1% 0.118 136.9);
Tailwind
colors: {
  custom: {
    50: '#6a8a53',
    500: '#2a5b0d',
    950: '#000000',
  },
}
SCSS
$custom: #2a5b0d;
$custom-light: #6a8a53;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5b0d",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 13
  },
  "hsl": {
    "h": 97.692,
    "s": 75,
    "l": 20.392
  },
  "oklch": {
    "l": 0.42064,
    "c": 0.1182,
    "h": 136.9
  },
  "luminance": 0.08003
}

Semantic roles & 50–950 ramp

primary
#2A5B0D
secondary
#6F2F95
accent
#36F2AC
background
#F6F8F5
surface
#EBF0E8
border
#C6CBC4
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5B0D

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

Preview Lab → · Contrast checker → · Palette generator →

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