#5215CA#5215CA

#5215CA is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 43.4% C 0.239 H 285.8°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#5215CA
RGBrgb(82, 21, 202)
HSLhsl(260, 81%, 44%)
HSVhsv(260, 90%, 79%)
CMYKcmyk(59.4%, 89.6%, 0%, 20.8%)
CIE-LABlab(30.86, 64.59, -79.80)
CIE-LCHlch(30.86, 102.66, 308.98°)
OKLaboklab(43.43% 0.0652 -0.2299)
OKLCHoklch(43.43% 0.239 285.8)
XYZxyz(14.4053, 6.5935, 56.3793)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5215CA #8DCA15
analogous
#1532CA #5215CA #AC15CA
triadic
#5215CA #CA5215 #15CA52
tetradic
#5215CA #CA1532 #8DCA15 #15CAAC
square
#5215CA #CA1532 #8DCA15 #15CAAC
split-complementary
#5215CA #CAAC15 #32CA15
monochromatic
#25095B #3B0F93 #5215CA #7032EA #976AEF

Accessibility & contrast

On white

9.06
#5215CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5215CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5215CA
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5215CA#FFFFFF#000000##FFFFFF
##5215CA1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DCF
Deuteranopia (green-blind)
#0043C7
Tritanopia (blue-blind)
#005377
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5215ca;
/* rgb */ color: rgb(82, 21, 202);
/* oklch */ color: oklch(43.4% 0.239 285.8);
Tailwind
colors: {
  custom: {
    50: '#9261dc',
    500: '#5215ca',
    950: '#000000',
  },
}
SCSS
$custom: #5215ca;
$custom-light: #9261dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5215ca",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 202
  },
  "hsl": {
    "h": 260.221,
    "s": 81.166,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43431,
    "c": 0.23893,
    "h": 285.8
  },
  "luminance": 0.06594
}

Semantic roles & 50–950 ramp

primary
#5215CA
secondary
#AFD566
accent
#F830B4
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0F0615
muted
#7E7A83

Preview Lab

Preview with #5215CA

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

Preview Lab → · Contrast checker → · Palette generator →

#5215CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva