#402286#402286

#402286 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.155 H 289.9°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#402286
RGBrgb(64, 34, 134)
HSLhsl(258, 60%, 33%)
HSVhsv(258, 75%, 53%)
CMYKcmyk(52.2%, 74.6%, 0%, 47.5%)
CIE-LABlab(23.52, 39.11, -50.87)
CIE-LCHlch(23.52, 64.17, 307.55°)
OKLaboklab(35.81% 0.053 -0.1461)
OKLCHoklch(35.81% 0.155 289.9)
XYZxyz(6.9882, 3.9550, 22.9448)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402286 #688622
analogous
#223686 #402286 #722286
triadic
#402286 #864022 #228640
tetradic
#402286 #862236 #688622 #228672
square
#402286 #862236 #688622 #228672
split-complementary
#402286 #867222 #368622
monochromatic
#110924 #291655 #402286 #572EB7 #7750D3

Accessibility & contrast

On white

11.73
#402286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402286
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402286#FFFFFF#000000##FFFFFF
##4022861.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003684
Tritanopia (blue-blind)
#273D52
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #402286;
/* rgb */ color: rgb(64, 34, 134);
/* oklch */ color: oklch(35.8% 0.155 289.9);
Tailwind
colors: {
  custom: {
    50: '#7d60aa',
    500: '#402286',
    950: '#000000',
  },
}
SCSS
$custom: #402286;
$custom-light: #7d60aa;
$custom-dark: #000000;
JSON
{
  "hex": "#402286",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 258,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35806,
    "c": 0.15542,
    "h": 289.9
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

primary
#402286
secondary
#97B64E
accent
#E345B3
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #402286

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

Preview Lab → · Contrast checker → · Palette generator →

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