#402585#402585

#402585 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.151 H 289.6°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#402585
RGBrgb(64, 37, 133)
HSLhsl(257, 56%, 33%)
HSVhsv(257, 72%, 52%)
CMYKcmyk(51.9%, 72.2%, 0%, 47.8%)
CIE-LABlab(24.02, 37.17, -49.43)
CIE-LCHlch(24.02, 61.85, 306.94°)
OKLaboklab(36.13% 0.0504 -0.1419)
OKLCHoklch(36.13% 0.151 289.6)
XYZxyz(7.0083, 4.1063, 22.6091)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402585 #6A8525
analogous
#253A85 #402585 #702585
triadic
#402585 #854025 #258540
tetradic
#402585 #85253A #6A8525 #258570
square
#402585 #85253A #6A8525 #258570
split-complementary
#402585 #857025 #3A8525
monochromatic
#120A25 #291855 #402585 #5732B5 #7755D0

Accessibility & contrast

On white

11.53
#402585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#402585 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402585
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402585#FFFFFF#000000##FFFFFF
##4025851.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003783
Tritanopia (blue-blind)
#283E52
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #402585;
/* rgb */ color: rgb(64, 37, 133);
/* oklch */ color: oklch(36.1% 0.151 289.6);
Tailwind
colors: {
  custom: {
    50: '#7c62a9',
    500: '#402585',
    950: '#000000',
  },
}
SCSS
$custom: #402585;
$custom-light: #7c62a9;
$custom-dark: #000000;
JSON
{
  "hex": "#402585",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 133
  },
  "hsl": {
    "h": 256.875,
    "s": 56.471,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36131,
    "c": 0.15057,
    "h": 289.6
  },
  "luminance": 0.04107
}

Semantic roles & 50–950 ramp

primary
#402585
secondary
#98B452
accent
#E048B5
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #402585

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

Preview Lab → · Contrast checker → · Palette generator →

#402585 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva