#2A5211#2A5211

#2A5211 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.5% C 0.103 H 136.0°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#2A5211
RGBrgb(42, 82, 17)
HSLhsl(97, 66%, 19%)
HSVhsv(97, 79%, 32%)
CMYKcmyk(48.8%, 0%, 79.3%, 67.8%)
CIE-LABlab(30.80, -26.75, 31.88)
CIE-LCHlch(30.80, 41.61, 130.01°)
OKLaboklab(39.45% -0.0745 0.0718)
OKLCHoklch(39.45% 0.103 136)
XYZxyz(4.0732, 6.5670, 1.5831)
Luminance0.0657 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5211 #391152
analogous
#4B5211 #2A5211 #115219
triadic
#2A5211 #112A52 #52112A
tetradic
#2A5211 #114B52 #391152 #521911
square
#2A5211 #114B52 #391152 #521911
split-complementary
#2A5211 #191152 #52114B
monochromatic
#0D1905 #101F06 #2A5211 #44851C #5EB726

Accessibility & contrast

On white

9.08
#2A5211 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2A5211 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5211
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5211#FFFFFF#000000##FFFFFF
##2A52111.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B06
Deuteranopia (green-blind)
#504717
Tritanopia (blue-blind)
#284F45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a5211;
/* rgb */ color: rgb(42, 82, 17);
/* oklch */ color: oklch(39.5% 0.103 136.0);
Tailwind
colors: {
  custom: {
    50: '#688354',
    500: '#2a5211',
    950: '#000000',
  },
}
SCSS
$custom: #2a5211;
$custom-light: #688354;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5211",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 96.923,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39451,
    "c": 0.10344,
    "h": 136
  },
  "luminance": 0.06567
}

Semantic roles & 50–950 ramp

primary
#2A5211
secondary
#6A348B
accent
#3FE9A7
background
#F6F8F5
surface
#EBEFE8
border
#C6CAC4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5211

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

Preview Lab → · Contrast checker → · Palette generator →

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