#2A4517#2A4517

#2A4517 is a dark, moderate yellow-green. Relative luminance 0.048; OKLCH L 35.7% C 0.079 H 134.3°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#2A4517
RGBrgb(42, 69, 23)
HSLhsl(95, 50%, 18%)
HSVhsv(95, 67%, 27%)
CMYKcmyk(39.1%, 0%, 66.7%, 72.9%)
CIE-LABlab(26.19, -19.76, 24.07)
CIE-LCHlch(26.19, 31.15, 129.38°)
OKLaboklab(35.7% -0.0549 0.0562)
OKLCHoklch(35.7% 0.079 134.3)
XYZxyz(3.2376, 4.8102, 1.5683)
Luminance0.0481 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4517 #321745
analogous
#414517 #2A4517 #17451B
triadic
#2A4517 #172A45 #45172A
tetradic
#2A4517 #174145 #321745 #451B17
square
#2A4517 #174145 #321745 #451B17
split-complementary
#2A4517 #1B1745 #451741
monochromatic
#0E1708 #0E1708 #2A4517 #467326 #62A136

Accessibility & contrast

On white

10.70
#2A4517 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A4517 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4517
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4517#FFFFFF#000000##FFFFFF
##2A45171.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F12
Deuteranopia (green-blind)
#443D1A
Tritanopia (blue-blind)
#2A423B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a4517;
/* rgb */ color: rgb(42, 69, 23);
/* oklch */ color: oklch(35.7% 0.079 134.3);
Tailwind
colors: {
  custom: {
    50: '#667956',
    500: '#2a4517',
    950: '#000000',
  },
}
SCSS
$custom: #2a4517;
$custom-light: #667956;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4517",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 23
  },
  "hsl": {
    "h": 95.217,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.35697,
    "c": 0.07859,
    "h": 134.3
  },
  "luminance": 0.0481
}

Semantic roles & 50–950 ramp

primary
#2A4517
secondary
#613C7C
accent
#4EDAA0
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2A4517

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

Preview Lab → · Contrast checker → · Palette generator →

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