#502DC3#502DC3

#502DC3 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.6% C 0.215 H 284.2°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#502DC3
RGBrgb(80, 45, 195)
HSLhsl(254, 63%, 47%)
HSVhsv(254, 77%, 76%)
CMYKcmyk(59%, 76.9%, 0%, 23.5%)
CIE-LABlab(32.97, 53.59, -72.24)
CIE-LCHlch(32.97, 89.94, 306.57°)
OKLaboklab(44.61% 0.0528 -0.2082)
OKLCHoklch(44.61% 0.215 284.2)
XYZxyz(14.0940, 7.5215, 52.3283)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DC3 #A0C32D
analogous
#2D55C3 #502DC3 #9B2DC3
triadic
#502DC3 #C3502D #2DC350
tetradic
#502DC3 #C32D55 #A0C32D #2DC39B
square
#502DC3 #C32D55 #A0C32D #2DC39B
split-complementary
#502DC3 #C39B2D #55C32D
monochromatic
#271660 #3C2291 #502DC3 #7455D8 #9D87E3

Accessibility & contrast

On white

8.39
#502DC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502DC3
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DC3#FFFFFF#000000##FFFFFF
##502DC31.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C7
Deuteranopia (green-blind)
#0049C0
Tritanopia (blue-blind)
#045877
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #502dc3;
/* rgb */ color: rgb(80, 45, 195);
/* oklch */ color: oklch(44.6% 0.215 284.2);
Tailwind
colors: {
  custom: {
    50: '#8e6bd6',
    500: '#502dc3',
    950: '#000000',
  },
}
SCSS
$custom: #502dc3;
$custom-light: #8e6bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#502dc3",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 195
  },
  "hsl": {
    "h": 254,
    "s": 62.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44611,
    "c": 0.21477,
    "h": 284.2
  },
  "luminance": 0.07522
}

Semantic roles & 50–950 ramp

primary
#502DC3
secondary
#BBCD7F
accent
#E642BF
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #502DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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