#402704#402704

#402704 is a dark, moderate orange. Relative luminance 0.025; OKLCH L 29.7% C 0.060 H 70.1°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#402704
RGBrgb(64, 39, 4)
HSLhsl(35, 88%, 13%)
HSVhsv(35, 94%, 25%)
CMYKcmyk(0%, 39.1%, 93.8%, 74.9%)
CIE-LABlab(18.14, 8.38, 24.76)
CIE-LCHlch(18.14, 26.14, 71.29°)
OKLaboklab(29.74% 0.0205 0.0566)
OKLCHoklch(29.74% 0.06 70.1)
XYZxyz(2.8620, 2.5501, 0.4563)
Luminance0.0255 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402704 #041D40
analogous
#400904 #402704 #3B4004
triadic
#402704 #044027 #270440
tetradic
#402704 #044009 #041D40 #40043B
square
#402704 #044009 #041D40 #40043B
split-complementary
#402704 #043B40 #090440
monochromatic
#1D1202 #1D1202 #402704 #7A4A08 #B36D0B

Accessibility & contrast

On white

13.91
#402704 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#402704 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402704
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402704#FFFFFF#000000##FFFFFF
##4027041.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2900
Deuteranopia (green-blind)
#352F05
Tritanopia (blue-blind)
#472120
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #402704;
/* rgb */ color: rgb(64, 39, 4);
/* oklch */ color: oklch(29.7% 0.060 70.1);
Tailwind
colors: {
  custom: {
    50: '#786149',
    500: '#402704',
    950: '#000000',
  },
}
SCSS
$custom: #402704;
$custom-light: #786149;
$custom-dark: #000000;
JSON
{
  "hex": "#402704",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 4
  },
  "hsl": {
    "h": 35,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.29741,
    "c": 0.06021,
    "h": 70.1
  },
  "luminance": 0.0255
}

Semantic roles & 50–950 ramp

primary
#402704
secondary
#1F4881
accent
#82FE29
background
#F7F5F4
surface
#EEE9E6
border
#C9C5C2
text
#090501
muted
#7B7977

Preview Lab

Preview with #402704

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

Preview Lab → · Contrast checker → · Palette generator →

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