#402504#402504

#402504 is a dark, moderate orange. Relative luminance 0.024; OKLCH L 29.3% C 0.061 H 66.3°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#402504
RGBrgb(64, 37, 4)
HSLhsl(33, 88%, 13%)
HSVhsv(33, 94%, 25%)
CMYKcmyk(0%, 42.2%, 93.8%, 74.9%)
CIE-LABlab(17.56, 9.72, 24.06)
CIE-LCHlch(17.56, 25.95, 68.00°)
OKLaboklab(29.29% 0.0244 0.0555)
OKLCHoklch(29.29% 0.061 66.3)
XYZxyz(2.7981, 2.4222, 0.4350)
Luminance0.0242 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402504 #041F40
analogous
#400704 #402504 #3D4004
triadic
#402504 #044025 #250440
tetradic
#402504 #044007 #041F40 #40043D
square
#402504 #044007 #041F40 #40043D
split-complementary
#402504 #043D40 #070440
monochromatic
#1D1102 #1D1102 #402504 #7A4608 #B3680B

Accessibility & contrast

On white

14.15
#402504 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#402504 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402504
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402504#FFFFFF#000000##FFFFFF
##4025041.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2701
Deuteranopia (green-blind)
#342E04
Tritanopia (blue-blind)
#471F1F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #402504;
/* rgb */ color: rgb(64, 37, 4);
/* oklch */ color: oklch(29.3% 0.061 66.3);
Tailwind
colors: {
  custom: {
    50: '#785f48',
    500: '#402504',
    950: '#000000',
  },
}
SCSS
$custom: #402504;
$custom-light: #785f48;
$custom-dark: #000000;
JSON
{
  "hex": "#402504",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 4
  },
  "hsl": {
    "h": 33,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.2929,
    "c": 0.06064,
    "h": 66.3
  },
  "luminance": 0.02422
}

Semantic roles & 50–950 ramp

primary
#402504
secondary
#1F4B81
accent
#89FE29
background
#F7F5F4
surface
#EEE9E6
border
#C9C5C2
text
#090400
muted
#7B7977

Preview Lab

Preview with #402504

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

Preview Lab → · Contrast checker → · Palette generator →

#402504 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva