#2A510F#2A510F

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

Color values

HEX#2A510F
RGBrgb(42, 81, 15)
HSLhsl(95, 69%, 19%)
HSVhsv(95, 81%, 32%)
CMYKcmyk(48.1%, 0%, 81.5%, 68.2%)
CIE-LABlab(30.43, -26.44, 32.32)
CIE-LCHlch(30.43, 41.76, 129.29°)
OKLaboklab(39.14% -0.0738 0.0724)
OKLCHoklch(39.14% 0.103 135.5)
XYZxyz(3.9834, 6.4114, 1.4795)
Luminance0.0641 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A510F #360F51
analogous
#4B510F #2A510F #0F5115
triadic
#2A510F #0F2A51 #510F2A
tetradic
#2A510F #0F4B51 #360F51 #51150F
square
#2A510F #0F4B51 #360F51 #51150F
split-complementary
#2A510F #150F51 #510F4B
monochromatic
#0D1A05 #0F1D05 #2A510F #458519 #60B822

Accessibility & contrast

On white

9.20
#2A510F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A510F
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A510F#FFFFFF#000000##FFFFFF
##2A510F1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a510f;
/* rgb */ color: rgb(42, 81, 15);
/* oklch */ color: oklch(39.1% 0.103 135.5);
Tailwind
colors: {
  custom: {
    50: '#688253',
    500: '#2a510f',
    950: '#000000',
  },
}
SCSS
$custom: #2a510f;
$custom-light: #688253;
$custom-dark: #000000;
JSON
{
  "hex": "#2a510f",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 95.455,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.39141,
    "c": 0.10336,
    "h": 135.5
  },
  "luminance": 0.06412
}

Semantic roles & 50–950 ramp

primary
#2A510F
secondary
#66318B
accent
#3CECA4
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A510F

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

Preview Lab → · Contrast checker → · Palette generator →

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