#2A5210#2A5210

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

Color values

HEX#2A5210
RGBrgb(42, 82, 16)
HSLhsl(96, 67%, 19%)
HSVhsv(96, 80%, 32%)
CMYKcmyk(48.8%, 0%, 80.5%, 67.8%)
CIE-LABlab(30.79, -26.83, 32.28)
CIE-LCHlch(30.79, 41.97, 129.73°)
OKLaboklab(39.44% -0.0747 0.0725)
OKLCHoklch(39.44% 0.104 135.9)
XYZxyz(4.0656, 6.5640, 1.5429)
Luminance0.0656 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5210 #381052
analogous
#4B5210 #2A5210 #105217
triadic
#2A5210 #102A52 #52102A
tetradic
#2A5210 #104B52 #381052 #521710
square
#2A5210 #104B52 #381052 #521710
split-complementary
#2A5210 #171052 #52104B
monochromatic
#0D1A05 #101F06 #2A5210 #44851A #5EB824

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A5210#FFFFFF#000000##FFFFFF
##2A52101.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)
#554B04
Deuteranopia (green-blind)
#504717
Tritanopia (blue-blind)
#284F45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a5210;
/* rgb */ color: rgb(42, 82, 16);
/* oklch */ color: oklch(39.4% 0.104 135.9);
Tailwind
colors: {
  custom: {
    50: '#688353',
    500: '#2a5210',
    950: '#000000',
  },
}
SCSS
$custom: #2a5210;
$custom-light: #688353;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5210",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 16
  },
  "hsl": {
    "h": 96.364,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39443,
    "c": 0.10412,
    "h": 135.9
  },
  "luminance": 0.06564
}

Semantic roles & 50–950 ramp

primary
#2A5210
secondary
#68328C
accent
#3EEAA6
background
#F6F8F4
surface
#EBEFE8
border
#C6CAC4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5210

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

Preview Lab → · Contrast checker → · Palette generator →

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