#402093#402093

#402093 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.173 H 287.2°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#402093
RGBrgb(64, 32, 147)
HSLhsl(257, 64%, 35%)
HSVhsv(257, 78%, 58%)
CMYKcmyk(56.5%, 78.2%, 0%, 42.4%)
CIE-LABlab(24.42, 43.96, -57.50)
CIE-LCHlch(24.42, 72.38, 307.40°)
OKLaboklab(36.82% 0.0512 -0.1655)
OKLCHoklch(36.82% 0.173 287.2)
XYZxyz(7.8958, 4.2292, 27.9984)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402093 #739320
analogous
#203993 #402093 #7A2093
triadic
#402093 #934020 #209340
tetradic
#402093 #932039 #739320 #20937A
square
#402093 #932039 #739320 #20937A
split-complementary
#402093 #937A20 #399320
monochromatic
#140A2E #2A1561 #402093 #562BC5 #7954DA

Accessibility & contrast

On white

11.38
#402093 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#402093 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402093
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402093#FFFFFF#000000##FFFFFF
##4020931.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D96
Deuteranopia (green-blind)
#003791
Tritanopia (blue-blind)
#1B4159
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #402093;
/* rgb */ color: rgb(64, 32, 147);
/* oklch */ color: oklch(36.8% 0.173 287.2);
Tailwind
colors: {
  custom: {
    50: '#7f60b4',
    500: '#402093',
    950: '#000000',
  },
}
SCSS
$custom: #402093;
$custom-light: #7f60b4;
$custom-dark: #000000;
JSON
{
  "hex": "#402093",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 147
  },
  "hsl": {
    "h": 256.696,
    "s": 64.246,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36816,
    "c": 0.17323,
    "h": 287.2
  },
  "luminance": 0.0423
}

Semantic roles & 50–950 ramp

primary
#402093
secondary
#9FBD52
accent
#E741B9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #402093

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

Preview Lab → · Contrast checker → · Palette generator →

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