#28271D#28271D

#28271D is a dark, near-neutral yellow. Relative luminance 0.020; OKLCH L 27.0% C 0.018 H 102.8°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#28271D
RGBrgb(40, 39, 29)
HSLhsl(55, 16%, 14%)
HSVhsv(55, 28%, 16%)
CMYKcmyk(0%, 2.5%, 27.5%, 84.3%)
CIE-LABlab(15.44, -1.69, 6.80)
CIE-LCHlch(15.44, 7.00, 103.96°)
OKLaboklab(27.04% -0.0039 0.0173)
OKLCHoklch(27.04% 0.018 102.8)
XYZxyz(1.8224, 1.9909, 1.4504)
Luminance0.0199 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28271D #1D1E28
analogous
#28211D #28271D #23281D
triadic
#28271D #1D2827 #271D28
tetradic
#28271D #1D2821 #1D1E28 #281D23
square
#28271D #1D2821 #1D1E28 #281D23
split-complementary
#28271D #1D2328 #211D28
monochromatic
#12110D #12110D #28271D #4B4A37 #6F6C50

Accessibility & contrast

On white

15.02
#28271D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28271D
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28271D#FFFFFF#000000##FFFFFF
##28271D1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28271d;
/* rgb */ color: rgb(40, 39, 29);
/* oklch */ color: oklch(27.0% 0.018 102.8);
Tailwind
colors: {
  custom: {
    50: '#626158',
    500: '#28271d',
    950: '#000000',
  },
}
SCSS
$custom: #28271d;
$custom-light: #626158;
$custom-dark: #000000;
JSON
{
  "hex": "#28271d",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 29
  },
  "hsl": {
    "h": 54.545,
    "s": 15.942,
    "l": 13.529
  },
  "oklch": {
    "l": 0.27043,
    "c": 0.01776,
    "h": 102.8
  },
  "luminance": 0.01991
}

Semantic roles & 50–950 ramp

primary
#28271D
secondary
#474959
accent
#76B96F
background
#F5F5F5
surface
#EAE9E9
border
#C6C5C5
text
#050503
muted
#797978

Preview Lab

Preview with #28271D

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

Preview Lab → · Contrast checker → · Palette generator →

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