#402389#402389

#402389 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.158 H 289.0°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#402389
RGBrgb(64, 35, 137)
HSLhsl(257, 59%, 34%)
HSVhsv(257, 74%, 54%)
CMYKcmyk(53.3%, 74.5%, 0%, 46.3%)
CIE-LABlab(23.99, 39.47, -51.98)
CIE-LCHlch(23.99, 65.27, 307.21°)
OKLaboklab(36.23% 0.0514 -0.1493)
OKLCHoklch(36.23% 0.158 289)
XYZxyz(7.2294, 4.0979, 24.0721)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402389 #6C8923
analogous
#233989 #402389 #732389
triadic
#402389 #894023 #238940
tetradic
#402389 #892339 #6C8923 #238973
square
#402389 #892339 #6C8923 #238973
split-complementary
#402389 #897323 #398923
monochromatic
#120A28 #291758 #402389 #572FBA #7853D3

Accessibility & contrast

On white

11.54
#402389 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402389
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402389#FFFFFF#000000##FFFFFF
##4023891.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003687
Tritanopia (blue-blind)
#253E54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #402389;
/* rgb */ color: rgb(64, 35, 137);
/* oklch */ color: oklch(36.2% 0.158 289.0);
Tailwind
colors: {
  custom: {
    50: '#7d61ac',
    500: '#402389',
    950: '#000000',
  },
}
SCSS
$custom: #402389;
$custom-light: #7d61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#402389",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 137
  },
  "hsl": {
    "h": 257.059,
    "s": 59.302,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36225,
    "c": 0.15795,
    "h": 289
  },
  "luminance": 0.04098
}

Semantic roles & 50–950 ramp

primary
#402389
secondary
#9AB751
accent
#E245B6
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #402389

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

Preview Lab → · Contrast checker → · Palette generator →

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