#2A271D#2A271D

#2A271D is a dark, near-neutral yellow. Relative luminance 0.020; OKLCH L 27.3% C 0.018 H 93.3°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#2A271D
RGBrgb(42, 39, 29)
HSLhsl(46, 18%, 14%)
HSVhsv(46, 31%, 16%)
CMYKcmyk(0%, 7.1%, 31%, 83.5%)
CIE-LABlab(15.65, -0.69, 7.12)
CIE-LCHlch(15.65, 7.16, 95.55°)
OKLaboklab(27.27% -0.0011 0.0181)
OKLCHoklch(27.27% 0.018 93.3)
XYZxyz(1.9021, 2.0320, 1.4542)
Luminance0.0203 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A271D #1D202A
analogous
#2A211D #2A271D #272A1D
triadic
#2A271D #1D2A27 #271D2A
tetradic
#2A271D #1D2A21 #1D202A #2A1D27
square
#2A271D #1D2A21 #1D202A #2A1D27
split-complementary
#2A271D #1D272A #211D2A
monochromatic
#12110C #12110C #2A271D #4E4936 #726A4F

Accessibility & contrast

On white

14.93
#2A271D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A271D
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A271D#FFFFFF#000000##FFFFFF
##2A271D1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29261C
Deuteranopia (green-blind)
#2A271D
Tritanopia (blue-blind)
#2C2524
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a271d;
/* rgb */ color: rgb(42, 39, 29);
/* oklch */ color: oklch(27.3% 0.018 93.3);
Tailwind
colors: {
  custom: {
    50: '#636158',
    500: '#2a271d',
    950: '#000000',
  },
}
SCSS
$custom: #2a271d;
$custom-light: #636158;
$custom-dark: #000000;
JSON
{
  "hex": "#2a271d",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 29
  },
  "hsl": {
    "h": 46.154,
    "s": 18.31,
    "l": 13.922
  },
  "oklch": {
    "l": 0.27265,
    "c": 0.01816,
    "h": 93.3
  },
  "luminance": 0.02032
}

Semantic roles & 50–950 ramp

primary
#2A271D
secondary
#474C5C
accent
#7FBB6D
background
#F5F5F5
surface
#EAE9E9
border
#C6C5C5
text
#050503
muted
#797978

Preview Lab

Preview with #2A271D

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

Preview Lab → · Contrast checker → · Palette generator →

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