#402183#402183

#402183 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.153 H 290.9°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#402183
RGBrgb(64, 33, 131)
HSLhsl(259, 60%, 32%)
HSVhsv(259, 75%, 51%)
CMYKcmyk(51.1%, 74.8%, 0%, 48.6%)
CIE-LABlab(23.05, 38.76, -49.76)
CIE-LCHlch(23.05, 63.07, 307.92°)
OKLaboklab(35.39% 0.0547 -0.1428)
OKLCHoklch(35.39% 0.153 290.9)
XYZxyz(6.7538, 3.8161, 21.8491)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402183 #648321
analogous
#213383 #402183 #712183
triadic
#402183 #834021 #218340
tetradic
#402183 #832133 #648321 #218371
square
#402183 #832133 #648321 #218371
split-complementary
#402183 #837121 #338321
monochromatic
#100821 #281552 #402183 #582DB4 #774CD2

Accessibility & contrast

On white

11.91
#402183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#402183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402183
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402183#FFFFFF#000000##FFFFFF
##4021831.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003581
Tritanopia (blue-blind)
#293B50
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #402183;
/* rgb */ color: rgb(64, 33, 131);
/* oklch */ color: oklch(35.4% 0.153 290.9);
Tailwind
colors: {
  custom: {
    50: '#7c5fa8',
    500: '#402183',
    950: '#000000',
  },
}
SCSS
$custom: #402183;
$custom-light: #7c5fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#402183",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 258.98,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35389,
    "c": 0.15291,
    "h": 290.9
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#402183
secondary
#93B54B
accent
#E345B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #402183

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

Preview Lab → · Contrast checker → · Palette generator →

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