#402702#402702

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

Color values

HEX#402702
RGBrgb(64, 39, 2)
HSLhsl(36, 94%, 13%)
HSVhsv(36, 97%, 25%)
CMYKcmyk(0%, 39.1%, 96.9%, 74.9%)
CIE-LABlab(18.12, 8.27, 25.55)
CIE-LCHlch(18.12, 26.85, 72.06°)
OKLaboklab(29.72% 0.0197 0.0585)
OKLCHoklch(29.72% 0.062 71.4)
XYZxyz(2.8511, 2.5457, 0.3986)
Luminance0.0255 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402702 #021B40
analogous
#400802 #402702 #3A4002
triadic
#402702 #024027 #270240
tetradic
#402702 #024008 #021B40 #40023A
square
#402702 #024008 #021B40 #40023A
split-complementary
#402702 #023A40 #080240
monochromatic
#1E1201 #1E1201 #402702 #7B4B04 #B76F06

Accessibility & contrast

On white

13.92
#402702 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402702
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402702#FFFFFF#000000##FFFFFF
##4027021.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402702;
/* rgb */ color: rgb(64, 39, 2);
/* oklch */ color: oklch(29.7% 0.062 71.4);
Tailwind
colors: {
  custom: {
    50: '#786148',
    500: '#402702',
    950: '#000000',
  },
}
SCSS
$custom: #402702;
$custom-light: #786148;
$custom-dark: #000000;
JSON
{
  "hex": "#402702",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 2
  },
  "hsl": {
    "h": 35.806,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.2972,
    "c": 0.06175,
    "h": 71.4
  },
  "luminance": 0.02545
}

Semantic roles & 50–950 ramp

primary
#402702
secondary
#1B4583
accent
#7FFF29
background
#F7F5F4
surface
#EEE9E6
border
#C9C5C2
text
#090500
muted
#7B7977

Preview Lab

Preview with #402702

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

Preview Lab → · Contrast checker → · Palette generator →

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