#401007#401007

#401007 is a dark, moderate red. Relative luminance 0.015; OKLCH L 25.4% C 0.077 H 33.0°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#401007
RGBrgb(64, 16, 7)
HSLhsl(9, 80%, 14%)
HSVhsv(9, 89%, 25%)
CMYKcmyk(0%, 75%, 89.1%, 74.9%)
CIE-LABlab(12.46, 22.76, 16.29)
CIE-LCHlch(12.46, 27.99, 35.59°)
OKLaboklab(25.4% 0.0644 0.0418)
OKLCHoklch(25.4% 0.077 33)
XYZxyz(2.3383, 1.4763, 0.3628)
Luminance0.0148 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401007 #073740
analogous
#40071B #401007 #402D07
triadic
#401007 #074010 #100740
tetradic
#401007 #1B4007 #073740 #2D0740
square
#401007 #1B4007 #073740 #2D0740
split-complementary
#401007 #07402D #071B40
monochromatic
#1C0703 #1C0703 #401007 #771E0D #AE2C13

Accessibility & contrast

On white

16.21
#401007 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#401007 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401007
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401007#FFFFFF#000000##FFFFFF
##4010071.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E1A06
Deuteranopia (green-blind)
#2A2406
Tritanopia (blue-blind)
#47040E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #401007;
/* rgb */ color: rgb(64, 16, 7);
/* oklch */ color: oklch(25.4% 0.077 33.0);
Tailwind
colors: {
  custom: {
    50: '#7a5149',
    500: '#401007',
    950: '#000000',
  },
}
SCSS
$custom: #401007;
$custom-light: #7a5149;
$custom-dark: #000000;
JSON
{
  "hex": "#401007",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 7
  },
  "hsl": {
    "h": 9.474,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25399,
    "c": 0.0768,
    "h": 33
  },
  "luminance": 0.01476
}

Semantic roles & 50–950 ramp

primary
#401007
secondary
#24717F
accent
#D8F731
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #401007

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

Preview Lab → · Contrast checker → · Palette generator →

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