#400F55#400F55

#400F55 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.1% C 0.122 H 313.2°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#400F55
RGBrgb(64, 15, 85)
HSLhsl(282, 70%, 20%)
HSVhsv(282, 82%, 33%)
CMYKcmyk(24.7%, 82.4%, 0%, 66.7%)
CIE-LABlab(15.94, 35.14, -31.36)
CIE-LCHlch(15.94, 47.10, 318.25°)
OKLaboklab(29.11% 0.0834 -0.0887)
OKLCHoklch(29.11% 0.122 313.2)
XYZxyz(3.9246, 2.0876, 8.7888)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F55 #24550F
analogous
#1D0F55 #400F55 #550F47
triadic
#400F55 #55400F #0F5540
tetradic
#400F55 #551D0F #24550F #0F4755
square
#400F55 #551D0F #24550F #0F4755
split-complementary
#400F55 #47550F #0F551D
monochromatic
#14051A #190621 #400F55 #671889 #8E21BD

Accessibility & contrast

On white

14.81
#400F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#400F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F55
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F55#FFFFFF#000000##FFFFFF
##400F551.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002557
Deuteranopia (green-blind)
#072954
Tritanopia (blue-blind)
#3E1F31
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #400f55;
/* rgb */ color: rgb(64, 15, 85);
/* oklch */ color: oklch(29.1% 0.122 313.2);
Tailwind
colors: {
  custom: {
    50: '#785485',
    500: '#400f55',
    950: '#000000',
  },
}
SCSS
$custom: #400f55;
$custom-light: #785485;
$custom-dark: #000000;
JSON
{
  "hex": "#400f55",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 85
  },
  "hsl": {
    "h": 282,
    "s": 70,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29108,
    "c": 0.12171,
    "h": 313.2
  },
  "luminance": 0.02088
}

Semantic roles & 50–950 ramp

primary
#400F55
secondary
#4D8F31
accent
#ED3B70
background
#F7F5F8
surface
#EDE8EF
border
#C8C4CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400F55

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

Preview Lab → · Contrast checker → · Palette generator →

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