#402807#402807

#402807 is a dark, muted orange. Relative luminance 0.026; OKLCH L 30.0% C 0.058 H 70.2°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#402807
RGBrgb(64, 40, 7)
HSLhsl(35, 80%, 14%)
HSVhsv(35, 89%, 25%)
CMYKcmyk(0%, 37.5%, 89.1%, 74.9%)
CIE-LABlab(18.47, 7.88, 23.92)
CIE-LCHlch(18.47, 25.18, 71.75°)
OKLaboklab(30% 0.0196 0.0545)
OKLCHoklch(30% 0.058 70.2)
XYZxyz(2.9117, 2.6232, 0.5539)
Luminance0.0262 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402807 #071F40
analogous
#400C07 #402807 #3C4007
triadic
#402807 #074028 #280740
tetradic
#402807 #07400C #071F40 #40073C
square
#402807 #07400C #071F40 #40073C
split-complementary
#402807 #073C40 #0C0740
monochromatic
#1C1103 #1C1103 #402807 #774A0D #AE6D13

Accessibility & contrast

On white

13.77
#402807 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#402807 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402807
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402807#FFFFFF#000000##FFFFFF
##4028071.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A03
Deuteranopia (green-blind)
#362F08
Tritanopia (blue-blind)
#472221
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #402807;
/* rgb */ color: rgb(64, 40, 7);
/* oklch */ color: oklch(30.0% 0.058 70.2);
Tailwind
colors: {
  custom: {
    50: '#78614a',
    500: '#402807',
    950: '#000000',
  },
}
SCSS
$custom: #402807;
$custom-light: #78614a;
$custom-dark: #000000;
JSON
{
  "hex": "#402807",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 7
  },
  "hsl": {
    "h": 34.737,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.30002,
    "c": 0.05786,
    "h": 70.2
  },
  "luminance": 0.02623
}

Semantic roles & 50–950 ramp

primary
#402807
secondary
#244A7F
accent
#84F731
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#090501
muted
#7B7977

Preview Lab

Preview with #402807

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

Preview Lab → · Contrast checker → · Palette generator →

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