#402292#402292

#402292 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.170 H 287.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#402292
RGBrgb(64, 34, 146)
HSLhsl(256, 62%, 35%)
HSVhsv(256, 77%, 57%)
CMYKcmyk(56.2%, 76.7%, 0%, 42.7%)
CIE-LABlab(24.67, 42.67, -56.47)
CIE-LCHlch(24.67, 70.77, 307.08°)
OKLaboklab(36.96% 0.05 -0.1625)
OKLCHoklch(36.96% 0.17 287.1)
XYZxyz(7.8731, 4.3089, 27.6054)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402292 #749222
analogous
#223C92 #402292 #782292
triadic
#402292 #924022 #229240
tetradic
#402292 #92223C #749222 #229278
square
#402292 #92223C #749222 #229278
split-complementary
#402292 #927822 #3C9222
monochromatic
#140B2F #2A1660 #402292 #562EC4 #7957D8

Accessibility & contrast

On white

11.28
#402292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#402292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402292
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402292#FFFFFF#000000##FFFFFF
##4022921.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D95
Deuteranopia (green-blind)
#003790
Tritanopia (blue-blind)
#1C4158
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #402292;
/* rgb */ color: rgb(64, 34, 146);
/* oklch */ color: oklch(37.0% 0.170 287.1);
Tailwind
colors: {
  custom: {
    50: '#7f61b3',
    500: '#402292',
    950: '#000000',
  },
}
SCSS
$custom: #402292;
$custom-light: #7f61b3;
$custom-dark: #000000;
JSON
{
  "hex": "#402292",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 256.071,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36963,
    "c": 0.16999,
    "h": 287.1
  },
  "luminance": 0.04309
}

Semantic roles & 50–950 ramp

primary
#402292
secondary
#A0BC54
accent
#E543BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #402292

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

Preview Lab → · Contrast checker → · Palette generator →

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