#40270C#40270C

#40270C is a dark, muted orange. Relative luminance 0.026; OKLCH L 29.8% C 0.055 H 64.8°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#40270C
RGBrgb(64, 39, 12)
HSLhsl(31, 68%, 15%)
HSVhsv(31, 81%, 25%)
CMYKcmyk(0%, 39.1%, 81.2%, 74.9%)
CIE-LABlab(18.22, 8.85, 21.54)
CIE-LCHlch(18.22, 23.29, 67.68°)
OKLaboklab(29.83% 0.0233 0.0494)
OKLCHoklch(29.83% 0.055 64.8)
XYZxyz(2.9065, 2.5678, 0.6903)
Luminance0.0257 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40270C #0C2540
analogous
#400D0C #40270C #3F400C
triadic
#40270C #0C4027 #270C40
tetradic
#40270C #0C400D #0C2540 #400C3F
square
#40270C #0C400D #0C2540 #400C3F
split-complementary
#40270C #0C3F40 #0D0C40
monochromatic
#1A1005 #1A1005 #40270C #744616 #A7661F

Accessibility & contrast

On white

13.87
#40270C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#40270C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40270C
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40270C#FFFFFF#000000##FFFFFF
##40270C1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2909
Deuteranopia (green-blind)
#352F0C
Tritanopia (blue-blind)
#472121
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #40270c;
/* rgb */ color: rgb(64, 39, 12);
/* oklch */ color: oklch(29.8% 0.055 64.8);
Tailwind
colors: {
  custom: {
    50: '#78614c',
    500: '#40270c',
    950: '#000000',
  },
}
SCSS
$custom: #40270c;
$custom-light: #78614c;
$custom-dark: #000000;
JSON
{
  "hex": "#40270c",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 12
  },
  "hsl": {
    "h": 31.154,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.29828,
    "c": 0.05458,
    "h": 64.8
  },
  "luminance": 0.02568
}

Semantic roles & 50–950 ramp

primary
#40270C
secondary
#2C527C
accent
#91EB3D
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#090501
muted
#7B7977

Preview Lab

Preview with #40270C

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

Preview Lab → · Contrast checker → · Palette generator →

#40270C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva