#402691#402691

#402691 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.164 H 286.6°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#402691
RGBrgb(64, 38, 145)
HSLhsl(255, 58%, 36%)
HSVhsv(255, 74%, 57%)
CMYKcmyk(55.9%, 73.8%, 0%, 43.1%)
CIE-LABlab(25.32, 40.25, -54.77)
CIE-LCHlch(25.32, 67.97, 306.31°)
OKLaboklab(37.4% 0.0469 -0.1575)
OKLCHoklch(37.4% 0.164 286.6)
XYZxyz(7.9168, 4.5201, 27.2379)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402691 #779126
analogous
#264291 #402691 #752691
triadic
#402691 #914026 #269140
tetradic
#402691 #912642 #779126 #269175
square
#402691 #912642 #779126 #269175
split-complementary
#402691 #917526 #429126
monochromatic
#150D30 #2B1961 #402691 #5533C1 #7A5DD5

Accessibility & contrast

On white

11.03
#402691 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#402691 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402691
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402691#FFFFFF#000000##FFFFFF
##4026911.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#00398F
Tritanopia (blue-blind)
#1D4359
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #402691;
/* rgb */ color: rgb(64, 38, 145);
/* oklch */ color: oklch(37.4% 0.164 286.6);
Tailwind
colors: {
  custom: {
    50: '#7e63b2',
    500: '#402691',
    950: '#000000',
  },
}
SCSS
$custom: #402691;
$custom-light: #7e63b2;
$custom-dark: #000000;
JSON
{
  "hex": "#402691",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 145
  },
  "hsl": {
    "h": 254.579,
    "s": 58.47,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37396,
    "c": 0.16439,
    "h": 286.6
  },
  "luminance": 0.04521
}

Semantic roles & 50–950 ramp

primary
#402691
secondary
#A2BA59
accent
#E246BC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #402691

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

Preview Lab → · Contrast checker → · Palette generator →

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