#28261F#28261F

#28261F is a dark, near-neutral yellow. Relative luminance 0.019; OKLCH L 26.8% C 0.013 H 93.9°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#28261F
RGBrgb(40, 38, 31)
HSLhsl(47, 13%, 14%)
HSVhsv(47, 23%, 16%)
CMYKcmyk(0%, 5%, 22.5%, 84.3%)
CIE-LABlab(15.15, -0.61, 4.98)
CIE-LCHlch(15.15, 5.02, 96.96°)
OKLaboklab(26.83% -0.0009 0.0129)
OKLCHoklch(26.83% 0.013 93.9)
XYZxyz(1.8155, 1.9363, 1.5742)
Luminance0.0194 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28261F #1F2128
analogous
#28221F #28261F #26281F
triadic
#28261F #1F2826 #261F28
tetradic
#28261F #1F2822 #1F2128 #281F26
square
#28261F #1F2822 #1F2128 #281F26
split-complementary
#28261F #1F2628 #221F28
monochromatic
#11100D #11100D #28261F #4A473A #6D6854

Accessibility & contrast

On white

15.14
#28261F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#28261F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28261F
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28261F#FFFFFF#000000##FFFFFF
##28261F1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28261f;
/* rgb */ color: rgb(40, 38, 31);
/* oklch */ color: oklch(26.8% 0.013 93.9);
Tailwind
colors: {
  custom: {
    50: '#62605a',
    500: '#28261f',
    950: '#000000',
  },
}
SCSS
$custom: #28261f;
$custom-light: #62605a;
$custom-dark: #000000;
JSON
{
  "hex": "#28261f",
  "rgb": {
    "r": 40,
    "g": 38,
    "b": 31
  },
  "hsl": {
    "h": 46.667,
    "s": 12.676,
    "l": 13.922
  },
  "oklch": {
    "l": 0.26832,
    "c": 0.01288,
    "h": 93.9
  },
  "luminance": 0.01936
}

Semantic roles & 50–950 ramp

primary
#28261F
secondary
#4A4D59
accent
#81B672
background
#F5F5F5
surface
#EAE9E9
border
#C6C5C5
text
#050403
muted
#797978

Preview Lab

Preview with #28261F

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

Preview Lab → · Contrast checker → · Palette generator →

#28261F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva