#402482#402482

#402482 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.148 H 290.6°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#402482
RGBrgb(64, 36, 130)
HSLhsl(258, 57%, 33%)
HSVhsv(258, 72%, 51%)
CMYKcmyk(50.8%, 72.3%, 0%, 49%)
CIE-LABlab(23.55, 36.82, -48.32)
CIE-LCHlch(23.55, 60.75, 307.31°)
OKLaboklab(35.71% 0.052 -0.1386)
OKLCHoklch(35.71% 0.148 290.6)
XYZxyz(6.7733, 3.9632, 21.5228)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402482 #668224
analogous
#243782 #402482 #6F2482
triadic
#402482 #824024 #248240
tetradic
#402482 #822437 #668224 #24826F
square
#402482 #822437 #668224 #24826F
split-complementary
#402482 #826F24 #378224
monochromatic
#110922 #281752 #402482 #5831B2 #7751CF

Accessibility & contrast

On white

11.71
#402482 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402482
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402482#FFFFFF#000000##FFFFFF
##4024821.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003680
Tritanopia (blue-blind)
#2A3C50
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #402482;
/* rgb */ color: rgb(64, 36, 130);
/* oklch */ color: oklch(35.7% 0.148 290.6);
Tailwind
colors: {
  custom: {
    50: '#7c61a7',
    500: '#402482',
    950: '#000000',
  },
}
SCSS
$custom: #402482;
$custom-light: #7c61a7;
$custom-dark: #000000;
JSON
{
  "hex": "#402482",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 130
  },
  "hsl": {
    "h": 257.872,
    "s": 56.627,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35713,
    "c": 0.14803,
    "h": 290.6
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#402482
secondary
#95B34F
accent
#E048B3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #402482

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

Preview Lab → · Contrast checker → · Palette generator →

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