#400F72#400F72

#400F72 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.8% C 0.152 H 299.5°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#400F72
RGBrgb(64, 15, 114)
HSLhsl(270, 77%, 25%)
HSVhsv(270, 87%, 45%)
CMYKcmyk(43.9%, 86.8%, 0%, 55.3%)
CIE-LABlab(18.57, 42.28, -46.26)
CIE-LCHlch(18.57, 62.67, 312.43°)
OKLaboklab(31.76% 0.0749 -0.1324)
OKLCHoklch(31.76% 0.152 299.5)
XYZxyz(5.3217, 2.6465, 16.1468)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F72 #41720F
analogous
#0F0F72 #400F72 #710F72
triadic
#400F72 #72400F #0F7240
tetradic
#400F72 #720F0F #41720F #0F7271
square
#400F72 #720F0F #41720F #0F7271
split-complementary
#400F72 #72710F #0F720F
monochromatic
#0F041B #22083C #400F72 #5E16A8 #7D1DDE

Accessibility & contrast

On white

13.73
#400F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#400F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F72
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F72#FFFFFF#000000##FFFFFF
##400F721.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#342C42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #400f72;
/* rgb */ color: rgb(64, 15, 114);
/* oklch */ color: oklch(31.8% 0.152 299.5);
Tailwind
colors: {
  custom: {
    50: '#7b559b',
    500: '#400f72',
    950: '#000000',
  },
}
SCSS
$custom: #400f72;
$custom-light: #7b559b;
$custom-dark: #000000;
JSON
{
  "hex": "#400f72",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 114
  },
  "hsl": {
    "h": 269.697,
    "s": 76.744,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31755,
    "c": 0.15211,
    "h": 299.5
  },
  "luminance": 0.02647
}

Semantic roles & 50–950 ramp

primary
#400F72
secondary
#6FAA33
accent
#F33595
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #400F72

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

Preview Lab → · Contrast checker → · Palette generator →

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