#400F56#400F56

#400F56 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.2% C 0.123 H 312.7°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#400F56
RGBrgb(64, 15, 86)
HSLhsl(281, 70%, 20%)
HSVhsv(281, 83%, 34%)
CMYKcmyk(25.6%, 82.6%, 0%, 66.3%)
CIE-LABlab(16.02, 35.38, -31.91)
CIE-LCHlch(16.02, 47.64, 317.95°)
OKLaboklab(29.19% 0.0832 -0.0903)
OKLCHoklch(29.19% 0.123 312.7)
XYZxyz(3.9646, 2.1036, 8.9995)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F56 #25560F
analogous
#1C0F56 #400F56 #560F49
triadic
#400F56 #56400F #0F5640
tetradic
#400F56 #561C0F #25560F #0F4956
square
#400F56 #561C0F #25560F #0F4956
split-complementary
#400F56 #49560F #0F561C
monochromatic
#13051A #190622 #400F56 #67188A #8E21BE

Accessibility & contrast

On white

14.78
#400F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F56
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F56#FFFFFF#000000##FFFFFF
##400F561.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#062955
Tritanopia (blue-blind)
#3D2032
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #400f56;
/* rgb */ color: rgb(64, 15, 86);
/* oklch */ color: oklch(29.2% 0.123 312.7);
Tailwind
colors: {
  custom: {
    50: '#785486',
    500: '#400f56',
    950: '#000000',
  },
}
SCSS
$custom: #400f56;
$custom-light: #785486;
$custom-dark: #000000;
JSON
{
  "hex": "#400f56",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 281.408,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29191,
    "c": 0.12274,
    "h": 312.7
  },
  "luminance": 0.02104
}

Semantic roles & 50–950 ramp

primary
#400F56
secondary
#4E9031
accent
#ED3B72
background
#F7F5F8
surface
#EDE8EF
border
#C8C4CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400F56

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

Preview Lab → · Contrast checker → · Palette generator →

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