#402F12#402F12

#402F12 is a dark, muted orange. Relative luminance 0.032; OKLCH L 31.8% C 0.050 H 78.6°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#402F12
RGBrgb(64, 47, 18)
HSLhsl(38, 56%, 16%)
HSVhsv(38, 72%, 25%)
CMYKcmyk(0%, 26.6%, 71.9%, 74.9%)
CIE-LABlab(20.70, 3.93, 21.21)
CIE-LCHlch(20.70, 21.58, 79.50°)
OKLaboklab(31.78% 0.0098 0.0489)
OKLCHoklch(31.78% 0.05 78.6)
XYZxyz(3.2402, 3.1669, 1.0128)
Luminance0.0317 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402F12 #122340
analogous
#401812 #402F12 #3A4012
triadic
#402F12 #12402F #2F1240
tetradic
#402F12 #124018 #122340 #40123A
square
#402F12 #124018 #122340 #40123A
split-complementary
#402F12 #123A40 #181240
monochromatic
#181207 #181207 #402F12 #70521F #A0752D

Accessibility & contrast

On white

12.86
#402F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402F12
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402F12#FFFFFF#000000##FFFFFF
##402F121.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#362F0F
Deuteranopia (green-blind)
#3A3413
Tritanopia (blue-blind)
#462A29
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402f12;
/* rgb */ color: rgb(64, 47, 18);
/* oklch */ color: oklch(31.8% 0.050 78.6);
Tailwind
colors: {
  custom: {
    50: '#776751',
    500: '#402f12',
    950: '#000000',
  },
}
SCSS
$custom: #402f12;
$custom-light: #776751;
$custom-dark: #000000;
JSON
{
  "hex": "#402f12",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 18
  },
  "hsl": {
    "h": 37.826,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.31784,
    "c": 0.04989,
    "h": 78.6
  },
  "luminance": 0.03167
}

Semantic roles & 50–950 ramp

primary
#402F12
secondary
#354E79
accent
#80DF48
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090602
muted
#7B7A78

Preview Lab

Preview with #402F12

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

Preview Lab → · Contrast checker → · Palette generator →

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