#502DB4#502DB4

#502DB4 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.198 H 286.7°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#502DB4
RGBrgb(80, 45, 180)
HSLhsl(256, 60%, 44%)
HSVhsv(256, 75%, 71%)
CMYKcmyk(55.6%, 75%, 0%, 29.4%)
CIE-LABlab(31.52, 49.30, -65.75)
CIE-LCHlch(31.52, 82.18, 306.87°)
OKLaboklab(43.17% 0.0568 -0.1892)
OKLCHoklch(43.17% 0.198 286.7)
XYZxyz(12.4824, 6.8769, 43.8408)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DB4 #91B42D
analogous
#2D4DB4 #502DB4 #942DB4
triadic
#502DB4 #B4502D #2DB450
tetradic
#502DB4 #B42D4D #91B42D #2DB494
square
#502DB4 #B42D4D #91B42D #2DB494
split-complementary
#502DB4 #B4942D #4DB42D
monochromatic
#241552 #3A2183 #502DB4 #6F4CD2 #967DDE

Accessibility & contrast

On white

8.84
#502DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#502DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DB4
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DB4#FFFFFF#000000##FFFFFF
##502DB41.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0046B1
Tritanopia (blue-blind)
#23536E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #502db4;
/* rgb */ color: rgb(80, 45, 180);
/* oklch */ color: oklch(43.2% 0.198 286.7);
Tailwind
colors: {
  custom: {
    50: '#8c6acc',
    500: '#502db4',
    950: '#000000',
  },
}
SCSS
$custom: #502db4;
$custom-light: #8c6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#502db4",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 255.556,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43166,
    "c": 0.19755,
    "h": 286.7
  },
  "luminance": 0.06878
}

Semantic roles & 50–950 ramp

primary
#502DB4
secondary
#B2C776
accent
#E345BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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