#400F4B#400F4B

#400F4B is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.3% C 0.111 H 319.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#400F4B
RGBrgb(64, 15, 75)
HSLhsl(289, 67%, 18%)
HSVhsv(289, 80%, 29%)
CMYKcmyk(14.7%, 80%, 0%, 70.6%)
CIE-LABlab(15.17, 32.87, -25.78)
CIE-LCHlch(15.17, 41.77, 321.89°)
OKLaboklab(28.31% 0.0848 -0.0723)
OKLCHoklch(28.31% 0.111 319.6)
XYZxyz(3.5550, 1.9398, 6.8424)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F4B #1A4B0F
analogous
#220F4B #400F4B #4B0F38
triadic
#400F4B #4B400F #0F4B40
tetradic
#400F4B #4B220F #1A4B0F #0F384B
square
#400F4B #4B220F #1A4B0F #0F384B
split-complementary
#400F4B #384B0F #0F4B22
monochromatic
#16051A #16051A #400F4B #6C197E #9723B1

Accessibility & contrast

On white

15.13
#400F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#400F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F4B
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F4B#FFFFFF#000000##FFFFFF
##400F4B1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#14284A
Tritanopia (blue-blind)
#401B2C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400f4b;
/* rgb */ color: rgb(64, 15, 75);
/* oklch */ color: oklch(28.3% 0.111 319.6);
Tailwind
colors: {
  custom: {
    50: '#77537e',
    500: '#400f4b',
    950: '#000000',
  },
}
SCSS
$custom: #400f4b;
$custom-light: #77537e;
$custom-dark: #000000;
JSON
{
  "hex": "#400f4b",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 289,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.28314,
    "c": 0.11143,
    "h": 319.6
  },
  "luminance": 0.0194
}

Semantic roles & 50–950 ramp

primary
#400F4B
secondary
#408530
accent
#EA3E5E
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #400F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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