#402F07#402F07

#402F07 is a dark, muted orange. Relative luminance 0.031; OKLCH L 31.7% C 0.059 H 84.1°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#402F07
RGBrgb(64, 47, 7)
HSLhsl(42, 80%, 14%)
HSVhsv(42, 89%, 25%)
CMYKcmyk(0%, 26.6%, 89.1%, 74.9%)
CIE-LABlab(20.59, 3.22, 26.35)
CIE-LCHlch(20.59, 26.55, 83.04°)
OKLaboklab(31.66% 0.006 0.0587)
OKLCHoklch(31.66% 0.059 84.1)
XYZxyz(3.1694, 3.1386, 0.6398)
Luminance0.0314 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402F07 #071840
analogous
#401307 #402F07 #354007
triadic
#402F07 #07402F #2F0740
tetradic
#402F07 #074013 #071840 #400735
square
#402F07 #074013 #071840 #400735
split-complementary
#402F07 #073540 #130740
monochromatic
#1C1403 #1C1403 #402F07 #77580D #AE8013

Accessibility & contrast

On white

12.90
#402F07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#402F07 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402F07
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402F07#FFFFFF#000000##FFFFFF
##402F071.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#362F02
Deuteranopia (green-blind)
#3A3309
Tritanopia (blue-blind)
#462A27
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402f07;
/* rgb */ color: rgb(64, 47, 7);
/* oklch */ color: oklch(31.7% 0.059 84.1);
Tailwind
colors: {
  custom: {
    50: '#78674b',
    500: '#402f07',
    950: '#000000',
  },
}
SCSS
$custom: #402f07;
$custom-light: #78674b;
$custom-dark: #000000;
JSON
{
  "hex": "#402f07",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 7
  },
  "hsl": {
    "h": 42.105,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.31663,
    "c": 0.059,
    "h": 84.1
  },
  "luminance": 0.03138
}

Semantic roles & 50–950 ramp

primary
#402F07
secondary
#243F7F
accent
#6CF731
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090601
muted
#7B7A77

Preview Lab

Preview with #402F07

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

Preview Lab → · Contrast checker → · Palette generator →

#402F07 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva