#2A4417#2A4417

#2A4417 is a dark, moderate yellow-green. Relative luminance 0.047; OKLCH L 35.4% C 0.077 H 134.0°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#2A4417
RGBrgb(42, 68, 23)
HSLhsl(95, 49%, 18%)
HSVhsv(95, 66%, 27%)
CMYKcmyk(38.2%, 0%, 66.2%, 73.3%)
CIE-LABlab(25.83, -19.23, 23.67)
CIE-LCHlch(25.83, 30.50, 129.10°)
OKLaboklab(35.4% -0.0535 0.0553)
OKLCHoklch(35.4% 0.077 134)
XYZxyz(3.1766, 4.6882, 1.5480)
Luminance0.0469 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4417 #311744
analogous
#404417 #2A4417 #17441A
triadic
#2A4417 #172A44 #44172A
tetradic
#2A4417 #174044 #311744 #441A17
square
#2A4417 #174044 #311744 #441A17
split-complementary
#2A4417 #1A1744 #441740
monochromatic
#0E1708 #0E1708 #2A4417 #467226 #629F36

Accessibility & contrast

On white

10.84
#2A4417 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A4417 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4417
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4417#FFFFFF#000000##FFFFFF
##2A44171.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#473F12
Deuteranopia (green-blind)
#433C1A
Tritanopia (blue-blind)
#2A413A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a4417;
/* rgb */ color: rgb(42, 68, 23);
/* oklch */ color: oklch(35.4% 0.077 134.0);
Tailwind
colors: {
  custom: {
    50: '#667856',
    500: '#2a4417',
    950: '#000000',
  },
}
SCSS
$custom: #2a4417;
$custom-light: #667856;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4417",
  "rgb": {
    "r": 42,
    "g": 68,
    "b": 23
  },
  "hsl": {
    "h": 94.667,
    "s": 49.451,
    "l": 17.843
  },
  "oklch": {
    "l": 0.35404,
    "c": 0.07695,
    "h": 134
  },
  "luminance": 0.04688
}

Semantic roles & 50–950 ramp

primary
#2A4417
secondary
#603C7B
accent
#4FD99F
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2A4417

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

Preview Lab → · Contrast checker → · Palette generator →

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