#400F45#400F45

#400F45 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.9% C 0.105 H 323.9°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#400F45
RGBrgb(64, 15, 69)
HSLhsl(294, 64%, 16%)
HSVhsv(294, 78%, 27%)
CMYKcmyk(7.2%, 78.3%, 0%, 72.9%)
CIE-LABlab(14.74, 31.57, -22.30)
CIE-LCHlch(14.74, 38.65, 324.77°)
OKLaboklab(27.87% 0.0852 -0.0621)
OKLCHoklch(27.87% 0.105 323.9)
XYZxyz(3.3593, 1.8615, 5.8114)
Luminance0.0186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F45 #14450F
analogous
#250F45 #400F45 #450F2F
triadic
#400F45 #45400F #0F4540
tetradic
#400F45 #45250F #14450F #0F2F45
square
#400F45 #45250F #14450F #0F2F45
split-complementary
#400F45 #2F450F #0F4525
monochromatic
#170519 #170519 #400F45 #6F1A77 #9D25AA

Accessibility & contrast

On white

15.30
#400F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F45
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F45#FFFFFF#000000##FFFFFF
##400F451.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022147
Deuteranopia (green-blind)
#182744
Tritanopia (blue-blind)
#411828
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #400f45;
/* rgb */ color: rgb(64, 15, 69);
/* oklch */ color: oklch(27.9% 0.105 323.9);
Tailwind
colors: {
  custom: {
    50: '#775379',
    500: '#400f45',
    950: '#000000',
  },
}
SCSS
$custom: #400f45;
$custom-light: #775379;
$custom-dark: #000000;
JSON
{
  "hex": "#400f45",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 69
  },
  "hsl": {
    "h": 294.444,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.27874,
    "c": 0.10541,
    "h": 323.9
  },
  "luminance": 0.01861
}

Semantic roles & 50–950 ramp

primary
#400F45
secondary
#387F30
accent
#E74150
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #400F45

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

Preview Lab → · Contrast checker → · Palette generator →

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