#40271A#40271A

#40271A is a dark, muted orange. Relative luminance 0.026; OKLCH L 30.1% C 0.044 H 48.0°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#40271A
RGBrgb(64, 39, 26)
HSLhsl(21, 42%, 18%)
HSVhsv(21, 59%, 25%)
CMYKcmyk(0%, 39.1%, 59.4%, 74.9%)
CIE-LABlab(18.43, 10.05, 13.40)
CIE-LCHlch(18.43, 16.75, 53.11°)
OKLaboklab(30.06% 0.0294 0.0326)
OKLCHoklch(30.06% 0.044 48)
XYZxyz(3.0265, 2.6159, 1.3226)
Luminance0.0262 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40271A #1A3340
analogous
#401A20 #40271A #403A1A
triadic
#40271A #1A4027 #271A40
tetradic
#40271A #20401A #1A3340 #3A1A40
square
#40271A #20401A #1A3340 #3A1A40
split-complementary
#40271A #1A403A #1A2040
monochromatic
#160D09 #160D09 #40271A #6C422C #975C3D

Accessibility & contrast

On white

13.79
#40271A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#40271A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40271A
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40271A#FFFFFF#000000##FFFFFF
##40271A1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2A19
Deuteranopia (green-blind)
#342F1A
Tritanopia (blue-blind)
#462224
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40271a;
/* rgb */ color: rgb(64, 39, 26);
/* oklch */ color: oklch(30.1% 0.044 48.0);
Tailwind
colors: {
  custom: {
    50: '#776156',
    500: '#40271a',
    950: '#000000',
  },
}
SCSS
$custom: #40271a;
$custom-light: #776156;
$custom-dark: #000000;
JSON
{
  "hex": "#40271a",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 20.526,
    "s": 42.222,
    "l": 17.647
  },
  "oklch": {
    "l": 0.30061,
    "c": 0.04387,
    "h": 48
  },
  "luminance": 0.02616
}

Semantic roles & 50–950 ramp

primary
#40271A
secondary
#406376
accent
#A8D256
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090503
muted
#7B7978

Preview Lab

Preview with #40271A

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

Preview Lab → · Contrast checker → · Palette generator →

#40271A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva