#2A520F#2A520F

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

Color values

HEX#2A520F
RGBrgb(42, 82, 15)
HSLhsl(96, 69%, 19%)
HSVhsv(96, 82%, 32%)
CMYKcmyk(48.8%, 0%, 81.7%, 67.8%)
CIE-LABlab(30.79, -26.91, 32.67)
CIE-LCHlch(30.79, 42.33, 129.47°)
OKLaboklab(39.43% -0.075 0.0731)
OKLCHoklch(39.43% 0.105 135.7)
XYZxyz(4.0583, 6.5611, 1.5044)
Luminance0.0656 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A520F #370F52
analogous
#4C520F #2A520F #0F5216
triadic
#2A520F #0F2A52 #520F2A
tetradic
#2A520F #0F4C52 #370F52 #52160F
square
#2A520F #0F4C52 #370F52 #52160F
split-complementary
#2A520F #160F52 #520F4C
monochromatic
#0D1A05 #101E06 #2A520F #448618 #5FB922

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A520F#FFFFFF#000000##FFFFFF
##2A520F1.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)
#554B03
Deuteranopia (green-blind)
#504716
Tritanopia (blue-blind)
#294F45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a520f;
/* rgb */ color: rgb(42, 82, 15);
/* oklch */ color: oklch(39.4% 0.105 135.7);
Tailwind
colors: {
  custom: {
    50: '#688353',
    500: '#2a520f',
    950: '#000000',
  },
}
SCSS
$custom: #2a520f;
$custom-light: #688353;
$custom-dark: #000000;
JSON
{
  "hex": "#2a520f",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 15
  },
  "hsl": {
    "h": 95.821,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.39435,
    "c": 0.10477,
    "h": 135.7
  },
  "luminance": 0.06561
}

Semantic roles & 50–950 ramp

primary
#2A520F
secondary
#67318C
accent
#3CECA5
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A520F

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

Preview Lab → · Contrast checker → · Palette generator →

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