#2A510D#2A510D

#2A510D is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.1% C 0.105 H 135.3°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#2A510D
RGBrgb(42, 81, 13)
HSLhsl(94, 72%, 18%)
HSVhsv(94, 84%, 32%)
CMYKcmyk(48.1%, 0%, 84%, 68.2%)
CIE-LABlab(30.41, -26.58, 33.08)
CIE-LCHlch(30.41, 42.44, 128.78°)
OKLaboklab(39.13% -0.0743 0.0736)
OKLCHoklch(39.13% 0.105 135.3)
XYZxyz(3.9698, 6.4059, 1.4080)
Luminance0.0641 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A510D #340D51
analogous
#4C510D #2A510D #0D5112
triadic
#2A510D #0D2A51 #510D2A
tetradic
#2A510D #0D4C51 #340D51 #51120D
square
#2A510D #0D4C51 #340D51 #51120D
split-complementary
#2A510D #120D51 #510D4C
monochromatic
#0E1A04 #0F1C05 #2A510D #458615 #61BA1E

Accessibility & contrast

On white

9.21
#2A510D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A510D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A510D
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A510D#FFFFFF#000000##FFFFFF
##2A510D1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A01
Deuteranopia (green-blind)
#4F4614
Tritanopia (blue-blind)
#294E44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a510d;
/* rgb */ color: rgb(42, 81, 13);
/* oklch */ color: oklch(39.1% 0.105 135.3);
Tailwind
colors: {
  custom: {
    50: '#688252',
    500: '#2a510d',
    950: '#000000',
  },
}
SCSS
$custom: #2a510d;
$custom-light: #688252;
$custom-dark: #000000;
JSON
{
  "hex": "#2a510d",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 13
  },
  "hsl": {
    "h": 94.412,
    "s": 72.34,
    "l": 18.431
  },
  "oklch": {
    "l": 0.39126,
    "c": 0.10462,
    "h": 135.3
  },
  "luminance": 0.06406
}

Semantic roles & 50–950 ramp

primary
#2A510D
secondary
#642E8C
accent
#39EFA1
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A510D

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

Preview Lab → · Contrast checker → · Palette generator →

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