#402089#402089

#402089 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.161 H 289.6°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#402089
RGBrgb(64, 32, 137)
HSLhsl(258, 62%, 33%)
HSVhsv(258, 77%, 54%)
CMYKcmyk(53.3%, 76.6%, 0%, 46.3%)
CIE-LABlab(23.43, 41.04, -52.90)
CIE-LCHlch(23.43, 66.95, 307.81°)
OKLaboklab(35.83% 0.054 -0.152)
OKLCHoklch(35.83% 0.161 289.6)
XYZxyz(7.1449, 3.9288, 24.0439)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402089 #698920
analogous
#203489 #402089 #742089
triadic
#402089 #894020 #208940
tetradic
#402089 #892034 #698920 #208974
square
#402089 #892034 #698920 #208974
split-complementary
#402089 #897420 #348920
monochromatic
#120926 #291457 #402089 #572CBB #774ED6

Accessibility & contrast

On white

11.76
#402089 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#402089 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402089
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402089#FFFFFF#000000##FFFFFF
##4020891.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003587
Tritanopia (blue-blind)
#253D53
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #402089;
/* rgb */ color: rgb(64, 32, 137);
/* oklch */ color: oklch(35.8% 0.161 289.6);
Tailwind
colors: {
  custom: {
    50: '#7d5fac',
    500: '#402089',
    950: '#000000',
  },
}
SCSS
$custom: #402089;
$custom-light: #7d5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#402089",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 137
  },
  "hsl": {
    "h": 258.286,
    "s": 62.13,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35831,
    "c": 0.16132,
    "h": 289.6
  },
  "luminance": 0.03929
}

Semantic roles & 50–950 ramp

primary
#402089
secondary
#98B94C
accent
#E543B4
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #402089

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

Preview Lab → · Contrast checker → · Palette generator →

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