#2A5010#2A5010

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

Color values

HEX#2A5010
RGBrgb(42, 80, 16)
HSLhsl(96, 67%, 19%)
HSVhsv(96, 80%, 31%)
CMYKcmyk(47.5%, 0%, 80%, 68.6%)
CIE-LABlab(30.08, -25.90, 31.57)
CIE-LCHlch(30.08, 40.83, 129.36°)
OKLaboklab(38.85% -0.0722 0.071)
OKLCHoklch(38.85% 0.101 135.5)
XYZxyz(3.9169, 6.2667, 1.4933)
Luminance0.0627 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5010 #361050
analogous
#4A5010 #2A5010 #105016
triadic
#2A5010 #102A50 #50102A
tetradic
#2A5010 #104A50 #361050 #501610
square
#2A5010 #104A50 #361050 #501610
split-complementary
#2A5010 #161050 #50104A
monochromatic
#0D1A05 #0F1D06 #2A5010 #45831A #60B624

Accessibility & contrast

On white

9.32
#2A5010 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2A5010 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5010
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5010#FFFFFF#000000##FFFFFF
##2A50101.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534905
Deuteranopia (green-blind)
#4E4616
Tritanopia (blue-blind)
#294D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a5010;
/* rgb */ color: rgb(42, 80, 16);
/* oklch */ color: oklch(38.9% 0.101 135.5);
Tailwind
colors: {
  custom: {
    50: '#688153',
    500: '#2a5010',
    950: '#000000',
  },
}
SCSS
$custom: #2a5010;
$custom-light: #688153;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5010",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 16
  },
  "hsl": {
    "h": 95.625,
    "s": 66.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38854,
    "c": 0.10127,
    "h": 135.5
  },
  "luminance": 0.06267
}

Semantic roles & 50–950 ramp

primary
#2A5010
secondary
#66328A
accent
#3EEAA4
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5010

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

Preview Lab → · Contrast checker → · Palette generator →

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