#400F40#400F40

#400F40 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.101 H 327.9°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#400F40
RGBrgb(64, 15, 64)
HSLhsl(300, 62%, 15%)
HSVhsv(300, 77%, 25%)
CMYKcmyk(0%, 76.6%, 0%, 74.9%)
CIE-LABlab(14.41, 30.54, -19.32)
CIE-LCHlch(14.41, 36.14, 327.68°)
OKLaboklab(27.53% 0.0852 -0.0534)
OKLCHoklch(27.53% 0.101 327.9)
XYZxyz(3.2105, 1.8020, 5.0282)
Luminance0.0180 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F40 #0F400F
analogous
#270F40 #400F40 #400F27
triadic
#400F40 #40400F #0F4040
tetradic
#400F40 #40270F #0F400F #0F2740
square
#400F40 #40270F #0F400F #0F2740
split-complementary
#400F40 #27400F #0F4027
monochromatic
#190619 #190619 #400F40 #721B72 #A326A3

Accessibility & contrast

On white

15.44
#400F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F40
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F40#FFFFFF#000000##FFFFFF
##400F401.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082041
Deuteranopia (green-blind)
#1B273F
Tritanopia (blue-blind)
#421626
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400f40;
/* rgb */ color: rgb(64, 15, 64);
/* oklch */ color: oklch(27.5% 0.101 327.9);
Tailwind
colors: {
  custom: {
    50: '#775275',
    500: '#400f40',
    950: '#000000',
  },
}
SCSS
$custom: #400f40;
$custom-light: #775275;
$custom-dark: #000000;
JSON
{
  "hex": "#400f40",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 300,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.2753,
    "c": 0.10054,
    "h": 327.9
  },
  "luminance": 0.01802
}

Semantic roles & 50–950 ramp

primary
#400F40
secondary
#307A30
accent
#E54343
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400F40

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

Preview Lab → · Contrast checker → · Palette generator →

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