#502DC2#502DC2

#502DC2 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.5% C 0.214 H 284.4°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#502DC2
RGBrgb(80, 45, 194)
HSLhsl(254, 62%, 47%)
HSVhsv(254, 77%, 76%)
CMYKcmyk(58.8%, 76.8%, 0%, 23.9%)
CIE-LABlab(32.87, 53.30, -71.81)
CIE-LCHlch(32.87, 89.43, 306.59°)
OKLaboklab(44.51% 0.0531 -0.2069)
OKLCHoklch(44.51% 0.214 284.4)
XYZxyz(13.9813, 7.4764, 51.7348)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DC2 #9FC22D
analogous
#2D55C2 #502DC2 #9B2DC2
triadic
#502DC2 #C2502D #2DC250
tetradic
#502DC2 #C22D55 #9FC22D #2DC29B
square
#502DC2 #C22D55 #9FC22D #2DC29B
split-complementary
#502DC2 #C29B2D #55C22D
monochromatic
#27165F #3C2190 #502DC2 #7355D7 #9C86E3

Accessibility & contrast

On white

8.42
#502DC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#502DC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DC2
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DC2#FFFFFF#000000##FFFFFF
##502DC21.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C6
Deuteranopia (green-blind)
#0048BF
Tritanopia (blue-blind)
#075876
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #502dc2;
/* rgb */ color: rgb(80, 45, 194);
/* oklch */ color: oklch(44.5% 0.214 284.4);
Tailwind
colors: {
  custom: {
    50: '#8e6bd6',
    500: '#502dc2',
    950: '#000000',
  },
}
SCSS
$custom: #502dc2;
$custom-light: #8e6bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#502dc2",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 254.094,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44513,
    "c": 0.21363,
    "h": 284.4
  },
  "luminance": 0.07477
}

Semantic roles & 50–950 ramp

primary
#502DC2
secondary
#BACD7E
accent
#E542BF
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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