#400F41#400F41

#400F41 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.6% C 0.102 H 327.1°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#400F41
RGBrgb(64, 15, 65)
HSLhsl(299, 63%, 16%)
HSVhsv(299, 77%, 25%)
CMYKcmyk(1.5%, 76.9%, 0%, 74.5%)
CIE-LABlab(14.48, 30.75, -19.92)
CIE-LCHlch(14.48, 36.63, 327.06°)
OKLaboklab(27.6% 0.0852 -0.0552)
OKLCHoklch(27.6% 0.102 327.1)
XYZxyz(3.2393, 1.8135, 5.1794)
Luminance0.0181 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F41 #10410F
analogous
#270F41 #400F41 #410F29
triadic
#400F41 #41400F #0F4140
tetradic
#400F41 #41270F #10410F #0F2941
square
#400F41 #41270F #10410F #0F2941
split-complementary
#400F41 #29410F #0F4127
monochromatic
#180619 #180619 #400F41 #711A73 #A226A4

Accessibility & contrast

On white

15.41
#400F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#400F41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F41
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F41#FFFFFF#000000##FFFFFF
##400F411.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072142
Deuteranopia (green-blind)
#1B2740
Tritanopia (blue-blind)
#421626
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400f41;
/* rgb */ color: rgb(64, 15, 65);
/* oklch */ color: oklch(27.6% 0.102 327.1);
Tailwind
colors: {
  custom: {
    50: '#775376',
    500: '#400f41',
    950: '#000000',
  },
}
SCSS
$custom: #400f41;
$custom-light: #775376;
$custom-dark: #000000;
JSON
{
  "hex": "#400f41",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 65
  },
  "hsl": {
    "h": 298.8,
    "s": 62.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.27597,
    "c": 0.1015,
    "h": 327.1
  },
  "luminance": 0.01813
}

Semantic roles & 50–950 ramp

primary
#400F41
secondary
#327B30
accent
#E64246
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400F41

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

Preview Lab → · Contrast checker → · Palette generator →

#400F41 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva