#28271E#28271E

#28271E is a dark, near-neutral yellow. Relative luminance 0.020; OKLCH L 27.1% C 0.016 H 102.2°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#28271E
RGBrgb(40, 39, 30)
HSLhsl(54, 14%, 14%)
HSVhsv(54, 25%, 16%)
CMYKcmyk(0%, 2.5%, 25%, 84.3%)
CIE-LABlab(15.47, -1.50, 6.13)
CIE-LCHlch(15.47, 6.31, 103.73°)
OKLaboklab(27.07% -0.0034 0.0157)
OKLCHoklch(27.07% 0.016 102.2)
XYZxyz(1.8349, 1.9959, 1.5166)
Luminance0.0200 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28271E #1E1F28
analogous
#28221E #28271E #24281E
triadic
#28271E #1E2827 #271E28
tetradic
#28271E #1E2822 #1E1F28 #281E24
square
#28271E #1E2822 #1E1F28 #281E24
split-complementary
#28271E #1E2428 #221E28
monochromatic
#11110D #11110D #28271E #4B4938 #6E6B52

Accessibility & contrast

On white

15.01
#28271E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28271E
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28271E#FFFFFF#000000##FFFFFF
##28271E1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29261D
Deuteranopia (green-blind)
#29271E
Tritanopia (blue-blind)
#2A2625
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #28271e;
/* rgb */ color: rgb(40, 39, 30);
/* oklch */ color: oklch(27.1% 0.016 102.2);
Tailwind
colors: {
  custom: {
    50: '#626159',
    500: '#28271e',
    950: '#000000',
  },
}
SCSS
$custom: #28271e;
$custom-light: #626159;
$custom-dark: #000000;
JSON
{
  "hex": "#28271e",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 54,
    "s": 14.286,
    "l": 13.725
  },
  "oklch": {
    "l": 0.27073,
    "c": 0.01605,
    "h": 102.2
  },
  "luminance": 0.01996
}

Semantic roles & 50–950 ramp

primary
#28271E
secondary
#494A59
accent
#78B771
background
#F5F5F5
surface
#EAE9E9
border
#C6C5C5
text
#050503
muted
#797978

Preview Lab

Preview with #28271E

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

Preview Lab → · Contrast checker → · Palette generator →

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