#28240B#28240B

#28240B is a dark, muted yellow. Relative luminance 0.017; OKLCH L 25.8% C 0.040 H 100.3°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#28240B
RGBrgb(40, 36, 11)
HSLhsl(52, 57%, 10%)
HSVhsv(52, 73%, 16%)
CMYKcmyk(0%, 10%, 72.5%, 84.3%)
CIE-LABlab(14.04, -2.25, 16.07)
CIE-LCHlch(14.04, 16.23, 97.98°)
OKLaboklab(25.82% -0.0072 0.0397)
OKLCHoklch(25.82% 0.04 100.3)
XYZxyz(1.5664, 1.7371, 0.5693)
Luminance0.0174 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28240B #0B0F28
analogous
#28150B #28240B #1E280B
triadic
#28240B #0B2824 #240B28
tetradic
#28240B #0B2815 #0B0F28 #280B1E
square
#28240B #0B2815 #0B0F28 #280B1E
split-complementary
#28240B #0B1E28 #150B28
monochromatic
#181607 #181607 #28240B #584F18 #887A25

Accessibility & contrast

On white

15.59
#28240B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#28240B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28240B
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28240B#FFFFFF#000000##FFFFFF
##28240B1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282309
Deuteranopia (green-blind)
#29240C
Tritanopia (blue-blind)
#2C211E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28240b;
/* rgb */ color: rgb(40, 36, 11);
/* oklch */ color: oklch(25.8% 0.040 100.3);
Tailwind
colors: {
  custom: {
    50: '#635e4c',
    500: '#28240b',
    950: '#000000',
  },
}
SCSS
$custom: #28240b;
$custom-light: #635e4c;
$custom-dark: #000000;
JSON
{
  "hex": "#28240b",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 11
  },
  "hsl": {
    "h": 51.724,
    "s": 56.863,
    "l": 10
  },
  "oklch": {
    "l": 0.25821,
    "c": 0.04031,
    "h": 100.3
  },
  "luminance": 0.01737
}

Semantic roles & 50–950 ramp

primary
#28240B
secondary
#2B3364
accent
#5DE048
background
#F5F5F4
surface
#EAE9E7
border
#C6C5C3
text
#050401
muted
#797977

Preview Lab

Preview with #28240B

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

Preview Lab → · Contrast checker → · Palette generator →

#28240B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva