#400F4E#400F4E

#400F4E is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.5% C 0.114 H 317.6°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#400F4E
RGBrgb(64, 15, 78)
HSLhsl(287, 68%, 18%)
HSVhsv(287, 81%, 31%)
CMYKcmyk(17.9%, 80.8%, 0%, 69.4%)
CIE-LABlab(15.39, 33.53, -27.48)
CIE-LCHlch(15.39, 43.36, 320.67°)
OKLaboklab(28.55% 0.0845 -0.0773)
OKLCHoklch(28.55% 0.114 317.6)
XYZxyz(3.6601, 1.9819, 7.3960)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F4E #1D4E0F
analogous
#200F4E #400F4E #4E0F3C
triadic
#400F4E #4E400F #0F4E40
tetradic
#400F4E #4E200F #1D4E0F #0F3C4E
square
#400F4E #4E200F #1D4E0F #0F3C4E
split-complementary
#400F4E #3C4E0F #0F4E20
monochromatic
#15051A #16051B #400F4E #6A1981 #9423B5

Accessibility & contrast

On white

15.04
#400F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#400F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F4E
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F4E#FFFFFF#000000##FFFFFF
##400F4E1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#11284D
Tritanopia (blue-blind)
#3F1C2D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400f4e;
/* rgb */ color: rgb(64, 15, 78);
/* oklch */ color: oklch(28.5% 0.114 317.6);
Tailwind
colors: {
  custom: {
    50: '#775380',
    500: '#400f4e',
    950: '#000000',
  },
}
SCSS
$custom: #400f4e;
$custom-light: #775380;
$custom-dark: #000000;
JSON
{
  "hex": "#400f4e",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 78
  },
  "hsl": {
    "h": 286.667,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28545,
    "c": 0.11449,
    "h": 317.6
  },
  "luminance": 0.01982
}

Semantic roles & 50–950 ramp

primary
#400F4E
secondary
#448831
accent
#EB3D64
background
#F7F4F7
surface
#EDE8EE
border
#C8C4C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #400F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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