#2A2811#2A2811

#2A2811 is a dark, muted yellow. Relative luminance 0.021; OKLCH L 27.3% C 0.038 H 104.2°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#2A2811
RGBrgb(42, 40, 17)
HSLhsl(55, 42%, 12%)
HSVhsv(55, 60%, 16%)
CMYKcmyk(0%, 4.8%, 59.5%, 83.5%)
CIE-LABlab(15.75, -3.21, 15.28)
CIE-LCHlch(15.75, 15.61, 101.86°)
OKLaboklab(27.26% -0.0093 0.0367)
OKLCHoklch(27.26% 0.038 104.2)
XYZxyz(1.8149, 2.0503, 0.8304)
Luminance0.0205 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2811 #11132A
analogous
#2A1C11 #2A2811 #202A11
triadic
#2A2811 #112A28 #28112A
tetradic
#2A2811 #112A1C #11132A #2A1120
square
#2A2811 #112A1C #11132A #2A1120
split-complementary
#2A2811 #11202A #1C112A
monochromatic
#161509 #161509 #2A2811 #565123 #817B34

Accessibility & contrast

On white

14.89
#2A2811 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A2811 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2811
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2811#FFFFFF#000000##FFFFFF
##2A28111.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C270F
Deuteranopia (green-blind)
#2C2812
Tritanopia (blue-blind)
#2D2523
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a2811;
/* rgb */ color: rgb(42, 40, 17);
/* oklch */ color: oklch(27.3% 0.038 104.2);
Tailwind
colors: {
  custom: {
    50: '#64614f',
    500: '#2a2811',
    950: '#000000',
  },
}
SCSS
$custom: #2a2811;
$custom-light: #64614f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2811",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 17
  },
  "hsl": {
    "h": 55.2,
    "s": 42.373,
    "l": 11.569
  },
  "oklch": {
    "l": 0.27259,
    "c": 0.03781,
    "h": 104.2
  },
  "luminance": 0.0205
}

Semantic roles & 50–950 ramp

primary
#2A2811
secondary
#353962
accent
#60D256
background
#F6F5F4
surface
#EBE9E7
border
#C6C5C3
text
#050502
muted
#7A7978

Preview Lab

Preview with #2A2811

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

Preview Lab → · Contrast checker → · Palette generator →

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