#2A2822#2A2822

#2A2822 is a dark, near-neutral yellow. Relative luminance 0.021; OKLCH L 27.7% C 0.011 H 91.7°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#2A2822
RGBrgb(42, 40, 34)
HSLhsl(45, 11%, 15%)
HSVhsv(45, 19%, 16%)
CMYKcmyk(0%, 4.8%, 19%, 83.5%)
CIE-LABlab(16.13, -0.41, 4.28)
CIE-LCHlch(16.13, 4.30, 95.42°)
OKLaboklab(27.69% -0.0003 0.0111)
OKLCHoklch(27.69% 0.011 91.7)
XYZxyz(2.0023, 2.1253, 1.8178)
Luminance0.0213 (WCAG relative)
Temperatureneutral
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2822 #22242A
analogous
#2A2422 #2A2822 #282A22
triadic
#2A2822 #222A28 #28222A
tetradic
#2A2822 #222A24 #22242A #2A2228
square
#2A2822 #222A24 #22242A #2A2228
split-complementary
#2A2822 #22282A #24222A
monochromatic
#11100E #11100E #2A2822 #4C483D #6E6859

Accessibility & contrast

On white

14.74
#2A2822 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2A2822 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2822
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2822#FFFFFF#000000##FFFFFF
##2A28221.0014.741.4314.74
#FFFFFF14.741.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292822
Deuteranopia (green-blind)
#2A2822
Tritanopia (blue-blind)
#2B2726
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a2822;
/* rgb */ color: rgb(42, 40, 34);
/* oklch */ color: oklch(27.7% 0.011 91.7);
Tailwind
colors: {
  custom: {
    50: '#63615c',
    500: '#2a2822',
    950: '#000000',
  },
}
SCSS
$custom: #2a2822;
$custom-light: #63615c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2822",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 34
  },
  "hsl": {
    "h": 45,
    "s": 10.526,
    "l": 14.902
  },
  "oklch": {
    "l": 0.27686,
    "c": 0.0111,
    "h": 91.7
  },
  "luminance": 0.02125
}

Semantic roles & 50–950 ramp

primary
#2A2822
secondary
#4E515A
accent
#84B374
background
#F5F5F5
surface
#EAE9E9
border
#C6C5C5
text
#050504
muted
#797979

Preview Lab

Preview with #2A2822

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

Preview Lab → · Contrast checker → · Palette generator →

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