#2A5A0D#2A5A0D

#2A5A0D is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 41.8% C 0.117 H 136.8°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2A5A0D
RGBrgb(42, 90, 13)
HSLhsl(97, 75%, 20%)
HSVhsv(97, 86%, 35%)
CMYKcmyk(53.3%, 0%, 85.6%, 64.7%)
CIE-LABlab(33.63, -30.63, 36.12)
CIE-LCHlch(33.63, 47.36, 130.29°)
OKLaboklab(41.77% -0.0852 0.08)
OKLCHoklch(41.77% 0.117 136.8)
XYZxyz(4.6835, 7.8333, 1.6459)
Luminance0.0783 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5A0D #3D0D5A
analogous
#505A0D #2A5A0D #0D5A17
triadic
#2A5A0D #0D2A5A #5A0D2A
tetradic
#2A5A0D #0D505A #3D0D5A #5A170D
square
#2A5A0D #0D505A #3D0D5A #5A170D
split-complementary
#2A5A0D #170D5A #5A0D50
monochromatic
#0C1B04 #112505 #2A5A0D #438F15 #5CC51C

Accessibility & contrast

On white

8.18
#2A5A0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2A5A0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5A0D
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5A0D#FFFFFF#000000##FFFFFF
##2A5A0D1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5200
Deuteranopia (green-blind)
#574E16
Tritanopia (blue-blind)
#27564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a5a0d;
/* rgb */ color: rgb(42, 90, 13);
/* oklch */ color: oklch(41.8% 0.117 136.8);
Tailwind
colors: {
  custom: {
    50: '#698953',
    500: '#2a5a0d',
    950: '#000000',
  },
}
SCSS
$custom: #2a5a0d;
$custom-light: #698953;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5a0d",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 13
  },
  "hsl": {
    "h": 97.403,
    "s": 74.757,
    "l": 20.196
  },
  "oklch": {
    "l": 0.41771,
    "c": 0.11687,
    "h": 136.8
  },
  "luminance": 0.07834
}

Semantic roles & 50–950 ramp

primary
#2A5A0D
secondary
#6E2E94
accent
#36F1AB
background
#F6F8F5
surface
#EBF0E8
border
#C6CBC4
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5A0D

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

Preview Lab → · Contrast checker → · Palette generator →

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