#402385#402385

#402385 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.153 H 290.0°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#402385
RGBrgb(64, 35, 133)
HSLhsl(258, 58%, 33%)
HSVhsv(258, 74%, 52%)
CMYKcmyk(51.9%, 73.7%, 0%, 47.8%)
CIE-LABlab(23.62, 38.27, -50.08)
CIE-LCHlch(23.62, 63.03, 307.39°)
OKLaboklab(35.85% 0.0523 -0.1438)
OKLCHoklch(35.85% 0.153 290)
XYZxyz(6.9478, 3.9852, 22.5889)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402385 #688523
analogous
#233785 #402385 #712385
triadic
#402385 #854023 #238540
tetradic
#402385 #852337 #688523 #238571
square
#402385 #852337 #688523 #238571
split-complementary
#402385 #857123 #378523
monochromatic
#110924 #291655 #402385 #5730B5 #7751D1

Accessibility & contrast

On white

11.68
#402385 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#402385 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402385
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402385#FFFFFF#000000##FFFFFF
##4023851.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003683
Tritanopia (blue-blind)
#283D51
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #402385;
/* rgb */ color: rgb(64, 35, 133);
/* oklch */ color: oklch(35.8% 0.153 290.0);
Tailwind
colors: {
  custom: {
    50: '#7c61a9',
    500: '#402385',
    950: '#000000',
  },
}
SCSS
$custom: #402385;
$custom-light: #7c61a9;
$custom-dark: #000000;
JSON
{
  "hex": "#402385",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 133
  },
  "hsl": {
    "h": 257.755,
    "s": 58.333,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35849,
    "c": 0.153,
    "h": 290
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

primary
#402385
secondary
#97B54F
accent
#E246B4
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #402385

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

Preview Lab → · Contrast checker → · Palette generator →

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