#28240C#28240C

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

Color values

HEX#28240C
RGBrgb(40, 36, 12)
HSLhsl(51, 54%, 10%)
HSVhsv(51, 70%, 16%)
CMYKcmyk(0%, 10%, 70%, 84.3%)
CIE-LABlab(14.06, -2.15, 15.64)
CIE-LCHlch(14.06, 15.79, 97.82°)
OKLaboklab(25.84% -0.0068 0.0385)
OKLCHoklch(25.84% 0.039 100)
XYZxyz(1.5724, 1.7395, 0.6007)
Luminance0.0174 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28240C #0C1028
analogous
#28160C #28240C #1E280C
triadic
#28240C #0C2824 #240C28
tetradic
#28240C #0C2816 #0C1028 #280C1E
square
#28240C #0C2816 #0C1028 #280C1E
split-complementary
#28240C #0C1E28 #160C28
monochromatic
#181507 #181507 #28240C #574E1A #867928

Accessibility & contrast

On white

15.58
#28240C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28240C
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28240C#FFFFFF#000000##FFFFFF
##28240C1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28230A
Deuteranopia (green-blind)
#29240D
Tritanopia (blue-blind)
#2B211F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28240c;
/* rgb */ color: rgb(40, 36, 12);
/* oklch */ color: oklch(25.8% 0.039 100.0);
Tailwind
colors: {
  custom: {
    50: '#635e4c',
    500: '#28240c',
    950: '#000000',
  },
}
SCSS
$custom: #28240c;
$custom-light: #635e4c;
$custom-dark: #000000;
JSON
{
  "hex": "#28240c",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 12
  },
  "hsl": {
    "h": 51.429,
    "s": 53.846,
    "l": 10.196
  },
  "oklch": {
    "l": 0.25837,
    "c": 0.0391,
    "h": 100
  },
  "luminance": 0.01739
}

Semantic roles & 50–950 ramp

primary
#28240C
secondary
#2D3563
accent
#60DD4B
background
#F5F5F4
surface
#EAE9E7
border
#C6C5C3
text
#050401
muted
#797977

Preview Lab

Preview with #28240C

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

Preview Lab → · Contrast checker → · Palette generator →

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