#2A520E#2A520E

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

Color values

HEX#2A520E
RGBrgb(42, 82, 14)
HSLhsl(95, 71%, 19%)
HSVhsv(95, 83%, 32%)
CMYKcmyk(48.8%, 0%, 82.9%, 67.8%)
CIE-LABlab(30.78, -26.98, 33.06)
CIE-LCHlch(30.78, 42.67, 129.22°)
OKLaboklab(39.43% -0.0753 0.0738)
OKLCHoklch(39.43% 0.105 135.6)
XYZxyz(4.0513, 6.5583, 1.4678)
Luminance0.0656 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A520E #360E52
analogous
#4C520E #2A520E #0E5214
triadic
#2A520E #0E2A52 #520E2A
tetradic
#2A520E #0E4C52 #360E52 #52140E
square
#2A520E #0E4C52 #360E52 #52140E
split-complementary
#2A520E #140E52 #520E4C
monochromatic
#0D1A04 #0F1E05 #2A520E #458617 #60BB20

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A520E#FFFFFF#000000##FFFFFF
##2A520E1.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)
#554B02
Deuteranopia (green-blind)
#504715
Tritanopia (blue-blind)
#294F45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a520e;
/* rgb */ color: rgb(42, 82, 14);
/* oklch */ color: oklch(39.4% 0.105 135.6);
Tailwind
colors: {
  custom: {
    50: '#688352',
    500: '#2a520e',
    950: '#000000',
  },
}
SCSS
$custom: #2a520e;
$custom-light: #688352;
$custom-dark: #000000;
JSON
{
  "hex": "#2a520e",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 14
  },
  "hsl": {
    "h": 95.294,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.39427,
    "c": 0.1054,
    "h": 135.6
  },
  "luminance": 0.06559
}

Semantic roles & 50–950 ramp

primary
#2A520E
secondary
#662F8C
accent
#3AEEA4
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A520E

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

Preview Lab → · Contrast checker → · Palette generator →

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