#402007#402007

#402007 is a dark, moderate orange. Relative luminance 0.021; OKLCH L 28.2% C 0.061 H 54.7°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#402007
RGBrgb(64, 32, 7)
HSLhsl(26, 80%, 14%)
HSVhsv(26, 89%, 25%)
CMYKcmyk(0%, 50%, 89.1%, 74.9%)
CIE-LABlab(16.20, 13.20, 21.16)
CIE-LCHlch(16.20, 24.94, 58.05°)
OKLaboklab(28.25% 0.0353 0.0498)
OKLCHoklch(28.25% 0.061 54.7)
XYZxyz(2.6695, 2.1387, 0.4732)
Luminance0.0214 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402007 #072740
analogous
#40070B #402007 #403D07
triadic
#402007 #074020 #200740
tetradic
#402007 #0B4007 #072740 #3D0740
square
#402007 #0B4007 #072740 #3D0740
split-complementary
#402007 #07403D #070B40
monochromatic
#1C0E03 #1C0E03 #402007 #773C0D #AE5713

Accessibility & contrast

On white

14.71
#402007 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#402007 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402007
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402007#FFFFFF#000000##FFFFFF
##4020071.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292404
Deuteranopia (green-blind)
#312B07
Tritanopia (blue-blind)
#47191B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #402007;
/* rgb */ color: rgb(64, 32, 7);
/* oklch */ color: oklch(28.2% 0.061 54.7);
Tailwind
colors: {
  custom: {
    50: '#785b4a',
    500: '#402007',
    950: '#000000',
  },
}
SCSS
$custom: #402007;
$custom-light: #785b4a;
$custom-dark: #000000;
JSON
{
  "hex": "#402007",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 7
  },
  "hsl": {
    "h": 26.316,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.28247,
    "c": 0.06104,
    "h": 54.7
  },
  "luminance": 0.02138
}

Semantic roles & 50–950 ramp

primary
#402007
secondary
#24577F
accent
#A0F731
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#090401
muted
#7B7977

Preview Lab

Preview with #402007

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

Preview Lab → · Contrast checker → · Palette generator →

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