#28271A#28271A

#28271A is a dark, muted yellow. Relative luminance 0.020; OKLCH L 27.0% C 0.023 H 104.1°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#28271A
RGBrgb(40, 39, 26)
HSLhsl(56, 21%, 13%)
HSVhsv(56, 35%, 16%)
CMYKcmyk(0%, 2.5%, 35%, 84.3%)
CIE-LABlab(15.37, -2.24, 8.79)
CIE-LCHlch(15.37, 9.07, 104.29°)
OKLaboklab(26.96% -0.0056 0.0221)
OKLCHoklch(26.96% 0.023 104.1)
XYZxyz(1.7871, 1.9768, 1.2645)
Luminance0.0198 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28271A #1A1B28
analogous
#28201A #28271A #22281A
triadic
#28271A #1A2827 #271A28
tetradic
#28271A #1A2820 #1A1B28 #281A22
square
#28271A #1A2820 #1A1B28 #281A22
split-complementary
#28271A #1A2228 #201A28
monochromatic
#13120C #13120C #28271A #4D4B32 #726F4A

Accessibility & contrast

On white

15.05
#28271A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#28271A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28271A
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28271A#FFFFFF#000000##FFFFFF
##28271A1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292619
Deuteranopia (green-blind)
#2A271A
Tritanopia (blue-blind)
#2A2524
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #28271a;
/* rgb */ color: rgb(40, 39, 26);
/* oklch */ color: oklch(27.0% 0.023 104.1);
Tailwind
colors: {
  custom: {
    50: '#626056',
    500: '#28271a',
    950: '#000000',
  },
}
SCSS
$custom: #28271a;
$custom-light: #626056;
$custom-dark: #000000;
JSON
{
  "hex": "#28271a",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 55.714,
    "s": 21.212,
    "l": 12.941
  },
  "oklch": {
    "l": 0.2696,
    "c": 0.02278,
    "h": 104.1
  },
  "luminance": 0.01977
}

Semantic roles & 50–950 ramp

primary
#28271A
secondary
#43455B
accent
#70BE6A
background
#F5F5F5
surface
#EAE9E9
border
#C6C5C5
text
#050503
muted
#797978

Preview Lab

Preview with #28271A

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

Preview Lab → · Contrast checker → · Palette generator →

#28271A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva