#2A271E#2A271E

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

Color values

HEX#2A271E
RGBrgb(42, 39, 30)
HSLhsl(45, 17%, 14%)
HSVhsv(45, 29%, 16%)
CMYKcmyk(0%, 7.1%, 28.6%, 83.5%)
CIE-LABlab(15.68, -0.51, 6.46)
CIE-LCHlch(15.68, 6.48, 94.49°)
OKLaboklab(27.29% -0.0005 0.0165)
OKLCHoklch(27.29% 0.017 91.8)
XYZxyz(1.9147, 2.0371, 1.5204)
Luminance0.0204 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A271E #1E212A
analogous
#2A211E #2A271E #272A1E
triadic
#2A271E #1E2A27 #271E2A
tetradic
#2A271E #1E2A21 #1E212A #2A1E27
square
#2A271E #1E2A21 #1E212A #2A1E27
split-complementary
#2A271E #1E272A #211E2A
monochromatic
#12110D #12110D #2A271E #4E4838 #716951

Accessibility & contrast

On white

14.92
#2A271E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A271E
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A271E#FFFFFF#000000##FFFFFF
##2A271E1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29271D
Deuteranopia (green-blind)
#2A271E
Tritanopia (blue-blind)
#2C2625
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a271e;
/* rgb */ color: rgb(42, 39, 30);
/* oklch */ color: oklch(27.3% 0.017 91.8);
Tailwind
colors: {
  custom: {
    50: '#636159',
    500: '#2a271e',
    950: '#000000',
  },
}
SCSS
$custom: #2a271e;
$custom-light: #636159;
$custom-dark: #000000;
JSON
{
  "hex": "#2a271e",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 45,
    "s": 16.667,
    "l": 14.118
  },
  "oklch": {
    "l": 0.27294,
    "c": 0.01652,
    "h": 91.8
  },
  "luminance": 0.02037
}

Semantic roles & 50–950 ramp

primary
#2A271E
secondary
#484D5B
accent
#81B96E
background
#F5F5F5
surface
#EAE9E9
border
#C6C5C5
text
#050503
muted
#797978

Preview Lab

Preview with #2A271E

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

Preview Lab → · Contrast checker → · Palette generator →

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