#400F42#400F42

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

Color values

HEX#400F42
RGBrgb(64, 15, 66)
HSLhsl(298, 63%, 16%)
HSVhsv(298, 77%, 26%)
CMYKcmyk(3%, 77.3%, 0%, 74.1%)
CIE-LABlab(14.54, 30.95, -20.52)
CIE-LCHlch(14.54, 37.13, 326.46°)
OKLaboklab(27.67% 0.0852 -0.0569)
OKLCHoklch(27.67% 0.102 326.2)
XYZxyz(3.2685, 1.8252, 5.3333)
Luminance0.0182 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F42 #11420F
analogous
#260F42 #400F42 #420F2A
triadic
#400F42 #42400F #0F4240
tetradic
#400F42 #42260F #11420F #0F2A42
square
#400F42 #42260F #11420F #0F2A42
split-complementary
#400F42 #2A420F #0F4226
monochromatic
#180619 #180619 #400F42 #701A74 #A126A6

Accessibility & contrast

On white

15.38
#400F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#400F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F42
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F42#FFFFFF#000000##FFFFFF
##400F421.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062143
Deuteranopia (green-blind)
#1A2741
Tritanopia (blue-blind)
#421727
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400f42;
/* rgb */ color: rgb(64, 15, 66);
/* oklch */ color: oklch(27.7% 0.102 326.2);
Tailwind
colors: {
  custom: {
    50: '#775376',
    500: '#400f42',
    950: '#000000',
  },
}
SCSS
$custom: #400f42;
$custom-light: #775376;
$custom-dark: #000000;
JSON
{
  "hex": "#400f42",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 297.647,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27665,
    "c": 0.10247,
    "h": 326.2
  },
  "luminance": 0.01825
}

Semantic roles & 50–950 ramp

primary
#400F42
secondary
#337C30
accent
#E64248
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400F42

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

Preview Lab → · Contrast checker → · Palette generator →

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