#2A5013#2A5013

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

Color values

HEX#2A5013
RGBrgb(42, 80, 19)
HSLhsl(97, 62%, 19%)
HSVhsv(97, 76%, 31%)
CMYKcmyk(47.5%, 0%, 76.3%, 68.6%)
CIE-LABlab(30.10, -25.65, 30.29)
CIE-LCHlch(30.10, 39.69, 130.25°)
OKLaboklab(38.88% -0.0713 0.0688)
OKLCHoklch(38.88% 0.099 136)
XYZxyz(3.9409, 6.2763, 1.6198)
Luminance0.0628 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5013 #391350
analogous
#495013 #2A5013 #13501B
triadic
#2A5013 #132A50 #50132A
tetradic
#2A5013 #134950 #391350 #501B13
square
#2A5013 #134950 #391350 #501B13
split-complementary
#2A5013 #1B1350 #501349
monochromatic
#0D1906 #101F07 #2A5013 #44811F #5EB32A

Accessibility & contrast

On white

9.31
#2A5013 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A5013
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5013#FFFFFF#000000##FFFFFF
##2A50131.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53490A
Deuteranopia (green-blind)
#4E4619
Tritanopia (blue-blind)
#294D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a5013;
/* rgb */ color: rgb(42, 80, 19);
/* oklch */ color: oklch(38.9% 0.099 136.0);
Tailwind
colors: {
  custom: {
    50: '#678155',
    500: '#2a5013',
    950: '#000000',
  },
}
SCSS
$custom: #2a5013;
$custom-light: #678155;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5013",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 19
  },
  "hsl": {
    "h": 97.377,
    "s": 61.616,
    "l": 19.412
  },
  "oklch": {
    "l": 0.38881,
    "c": 0.09908,
    "h": 136
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#2A5013
secondary
#6A3689
accent
#43E5A8
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5013

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

Preview Lab → · Contrast checker → · Palette generator →

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