#502DC1#502DC1

#502DC1 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.4% C 0.212 H 284.5°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#502DC1
RGBrgb(80, 45, 193)
HSLhsl(254, 62%, 47%)
HSVhsv(254, 77%, 76%)
CMYKcmyk(58.5%, 76.7%, 0%, 24.3%)
CIE-LABlab(32.77, 53.02, -71.38)
CIE-LCHlch(32.77, 88.92, 306.60°)
OKLaboklab(44.42% 0.0534 -0.2057)
OKLCHoklch(44.42% 0.213 284.5)
XYZxyz(13.8693, 7.4316, 51.1453)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DC1 #9EC12D
analogous
#2D54C1 #502DC1 #9A2DC1
triadic
#502DC1 #C1502D #2DC150
tetradic
#502DC1 #C12D54 #9EC12D #2DC19A
square
#502DC1 #C12D54 #9EC12D #2DC19A
split-complementary
#502DC1 #C19A2D #54C12D
monochromatic
#27165E #3B218F #502DC1 #7354D7 #9C86E3

Accessibility & contrast

On white

8.45
#502DC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#502DC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DC1
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DC1#FFFFFF#000000##FFFFFF
##502DC11.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C5
Deuteranopia (green-blind)
#0048BE
Tritanopia (blue-blind)
#0B5876
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #502dc1;
/* rgb */ color: rgb(80, 45, 193);
/* oklch */ color: oklch(44.4% 0.212 284.5);
Tailwind
colors: {
  custom: {
    50: '#8e6bd5',
    500: '#502dc1',
    950: '#000000',
  },
}
SCSS
$custom: #502dc1;
$custom-light: #8e6bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#502dc1",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 193
  },
  "hsl": {
    "h": 254.189,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44415,
    "c": 0.2125,
    "h": 284.5
  },
  "luminance": 0.07433
}

Semantic roles & 50–950 ramp

primary
#502DC1
secondary
#BACC7E
accent
#E543BF
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502DC1

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

Preview Lab → · Contrast checker → · Palette generator →

#502DC1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva