#2A5015#2A5015

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

Color values

HEX#2A5015
RGBrgb(42, 80, 21)
HSLhsl(99, 58%, 20%)
HSVhsv(99, 74%, 31%)
CMYKcmyk(47.5%, 0%, 73.7%, 68.6%)
CIE-LABlab(30.12, -25.46, 29.39)
CIE-LCHlch(30.12, 38.89, 130.90°)
OKLaboklab(38.9% -0.0706 0.0672)
OKLCHoklch(38.9% 0.098 136.4)
XYZxyz(3.9588, 6.2835, 1.7136)
Luminance0.0628 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5015 #3B1550
analogous
#485015 #2A5015 #15501D
triadic
#2A5015 #152A50 #50152A
tetradic
#2A5015 #154850 #3B1550 #501D15
square
#2A5015 #154850 #3B1550 #501D15
split-complementary
#2A5015 #1D1550 #501548
monochromatic
#0D1806 #112008 #2A5015 #438022 #5DB12E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A5015#FFFFFF#000000##FFFFFF
##2A50151.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)
#53490D
Deuteranopia (green-blind)
#4E461A
Tritanopia (blue-blind)
#284D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a5015;
/* rgb */ color: rgb(42, 80, 21);
/* oklch */ color: oklch(38.9% 0.098 136.4);
Tailwind
colors: {
  custom: {
    50: '#678156',
    500: '#2a5015',
    950: '#000000',
  },
}
SCSS
$custom: #2a5015;
$custom-light: #678156;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5015",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 21
  },
  "hsl": {
    "h": 98.644,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38901,
    "c": 0.0975,
    "h": 136.4
  },
  "luminance": 0.06284
}

Semantic roles & 50–950 ramp

primary
#2A5015
secondary
#6C3988
accent
#46E2AA
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5015

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

Preview Lab → · Contrast checker → · Palette generator →

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