#2A2816#2A2816

#2A2816 is a dark, muted yellow. Relative luminance 0.021; OKLCH L 27.4% C 0.031 H 102.7°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#2A2816
RGBrgb(42, 40, 22)
HSLhsl(54, 31%, 13%)
HSVhsv(54, 48%, 16%)
CMYKcmyk(0%, 4.8%, 47.6%, 83.5%)
CIE-LABlab(15.84, -2.53, 12.19)
CIE-LCHlch(15.84, 12.45, 101.75°)
OKLaboklab(27.36% -0.0068 0.0299)
OKLCHoklch(27.36% 0.031 102.7)
XYZxyz(1.8585, 2.0678, 1.0601)
Luminance0.0207 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2816 #16182A
analogous
#2A1E16 #2A2816 #222A16
triadic
#2A2816 #162A28 #28162A
tetradic
#2A2816 #162A1E #16182A #2A1622
square
#2A2816 #162A1E #16182A #2A1622
split-complementary
#2A2816 #16222A #1E162A
monochromatic
#14130B #14130B #2A2816 #524E2B #7A7440

Accessibility & contrast

On white

14.86
#2A2816 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2816
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2816#FFFFFF#000000##FFFFFF
##2A28161.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2715
Deuteranopia (green-blind)
#2C2817
Tritanopia (blue-blind)
#2D2623
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a2816;
/* rgb */ color: rgb(42, 40, 22);
/* oklch */ color: oklch(27.4% 0.031 102.7);
Tailwind
colors: {
  custom: {
    50: '#646153',
    500: '#2a2816',
    950: '#000000',
  },
}
SCSS
$custom: #2a2816;
$custom-light: #646153;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2816",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 22
  },
  "hsl": {
    "h": 54,
    "s": 31.25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.27359,
    "c": 0.03064,
    "h": 102.7
  },
  "luminance": 0.02068
}

Semantic roles & 50–950 ramp

primary
#2A2816
secondary
#3D405F
accent
#6BC760
background
#F6F5F4
surface
#EBE9E7
border
#C6C5C3
text
#050502
muted
#7A7978

Preview Lab

Preview with #2A2816

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

Preview Lab → · Contrast checker → · Palette generator →

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