#5315CA#5315CA

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

Color values

HEX#5315CA
RGBrgb(83, 21, 202)
HSLhsl(261, 81%, 44%)
HSVhsv(261, 90%, 79%)
CMYKcmyk(58.9%, 89.6%, 0%, 20.8%)
CIE-LABlab(30.97, 64.67, -79.62)
CIE-LCHlch(30.97, 102.57, 309.08°)
OKLaboklab(43.53% 0.0668 -0.2293)
OKLCHoklch(43.53% 0.239 286.2)
XYZxyz(14.4929, 6.6387, 56.3834)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5315CA #8CCA15
analogous
#1532CA #5315CA #AD15CA
triadic
#5315CA #CA5315 #15CA53
tetradic
#5315CA #CA1532 #8CCA15 #15CAAD
square
#5315CA #CA1532 #8CCA15 #15CAAD
split-complementary
#5315CA #CAAD15 #32CA15
monochromatic
#25095B #3C0F93 #5315CA #7132EA #986AEF

Accessibility & contrast

On white

9.02
#5315CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5315CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5315CA
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5315CA#FFFFFF#000000##FFFFFF
##5315CA1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5315ca;
/* rgb */ color: rgb(83, 21, 202);
/* oklch */ color: oklch(43.5% 0.239 286.2);
Tailwind
colors: {
  custom: {
    50: '#9361dc',
    500: '#5315ca',
    950: '#000000',
  },
}
SCSS
$custom: #5315ca;
$custom-light: #9361dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5315ca",
  "rgb": {
    "r": 83,
    "g": 21,
    "b": 202
  },
  "hsl": {
    "h": 260.552,
    "s": 81.166,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43528,
    "c": 0.23884,
    "h": 286.2
  },
  "luminance": 0.0664
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5315CA

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

Preview Lab → · Contrast checker → · Palette generator →

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