#40270F#40270F

#40270F is a dark, muted orange. Relative luminance 0.026; OKLCH L 29.9% C 0.052 H 62.2°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#40270F
RGBrgb(64, 39, 15)
HSLhsl(29, 62%, 15%)
HSVhsv(29, 77%, 25%)
CMYKcmyk(0%, 39.1%, 76.6%, 74.9%)
CIE-LABlab(18.26, 9.05, 20.11)
CIE-LCHlch(18.26, 22.05, 65.78°)
OKLaboklab(29.87% 0.0244 0.0463)
OKLCHoklch(29.87% 0.052 62.2)
XYZxyz(2.9263, 2.5758, 0.7949)
Luminance0.0258 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40270F #0F2840
analogous
#400F0F #40270F #403F0F
triadic
#40270F #0F4027 #270F40
tetradic
#40270F #0F400F #0F2840 #3F0F40
square
#40270F #0F400F #0F2840 #3F0F40
split-complementary
#40270F #0F403F #0F0F40
monochromatic
#190F06 #190F06 #40270F #72451B #A36326

Accessibility & contrast

On white

13.86
#40270F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#40270F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40270F
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40270F#FFFFFF#000000##FFFFFF
##40270F1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F290D
Deuteranopia (green-blind)
#352F0F
Tritanopia (blue-blind)
#462122
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40270f;
/* rgb */ color: rgb(64, 39, 15);
/* oklch */ color: oklch(29.9% 0.052 62.2);
Tailwind
colors: {
  custom: {
    50: '#78614e',
    500: '#40270f',
    950: '#000000',
  },
}
SCSS
$custom: #40270f;
$custom-light: #78614e;
$custom-dark: #000000;
JSON
{
  "hex": "#40270f",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 15
  },
  "hsl": {
    "h": 29.388,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.29867,
    "c": 0.05237,
    "h": 62.2
  },
  "luminance": 0.02576
}

Semantic roles & 50–950 ramp

primary
#40270F
secondary
#30567A
accent
#96E543
background
#F7F5F4
surface
#EDE9E7
border
#C8C5C3
text
#090501
muted
#7B7977

Preview Lab

Preview with #40270F

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

Preview Lab → · Contrast checker → · Palette generator →

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