#2A5016#2A5016

#2A5016 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 38.9% C 0.097 H 136.6°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#2A5016
RGBrgb(42, 80, 22)
HSLhsl(99, 57%, 20%)
HSVhsv(99, 73%, 31%)
CMYKcmyk(47.5%, 0%, 72.5%, 68.6%)
CIE-LABlab(30.13, -25.36, 28.93)
CIE-LCHlch(30.13, 38.47, 131.25°)
OKLaboklab(38.91% -0.0703 0.0664)
OKLCHoklch(38.91% 0.097 136.6)
XYZxyz(3.9682, 6.2873, 1.7634)
Luminance0.0629 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5016 #3C1650
analogous
#475016 #2A5016 #16501F
triadic
#2A5016 #162A50 #50162A
tetradic
#2A5016 #164750 #3C1650 #501F16
square
#2A5016 #164750 #3C1650 #501F16
split-complementary
#2A5016 #1F1650 #501647
monochromatic
#0D1807 #112009 #2A5016 #438023 #5CB030

Accessibility & contrast

On white

9.30
#2A5016 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2A5016 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5016
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5016#FFFFFF#000000##FFFFFF
##2A50161.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53490E
Deuteranopia (green-blind)
#4E461B
Tritanopia (blue-blind)
#284D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a5016;
/* rgb */ color: rgb(42, 80, 22);
/* oklch */ color: oklch(38.9% 0.097 136.6);
Tailwind
colors: {
  custom: {
    50: '#678156',
    500: '#2a5016',
    950: '#000000',
  },
}
SCSS
$custom: #2a5016;
$custom-light: #678156;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5016",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 22
  },
  "hsl": {
    "h": 99.31,
    "s": 56.863,
    "l": 20
  },
  "oklch": {
    "l": 0.38912,
    "c": 0.09667,
    "h": 136.6
  },
  "luminance": 0.06287
}

Semantic roles & 50–950 ramp

primary
#2A5016
secondary
#6D3A87
accent
#48E0AC
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5016

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

Preview Lab → · Contrast checker → · Palette generator →

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