#502DB3#502DB3

#502DB3 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.196 H 286.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#502DB3
RGBrgb(80, 45, 179)
HSLhsl(256, 60%, 44%)
HSVhsv(256, 75%, 70%)
CMYKcmyk(55.3%, 74.9%, 0%, 29.8%)
CIE-LABlab(31.43, 49.01, -65.30)
CIE-LCHlch(31.43, 81.65, 306.89°)
OKLaboklab(43.07% 0.0571 -0.1879)
OKLCHoklch(43.07% 0.196 286.9)
XYZxyz(12.3809, 6.8363, 43.3062)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DB3 #90B32D
analogous
#2D4DB3 #502DB3 #932DB3
triadic
#502DB3 #B3502D #2DB350
tetradic
#502DB3 #B32D4D #90B32D #2DB393
square
#502DB3 #B32D4D #90B32D #2DB393
split-complementary
#502DB3 #B3932D #4DB32D
monochromatic
#241451 #3A2182 #502DB3 #6E4BD2 #967CDE

Accessibility & contrast

On white

8.87
#502DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#502DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DB3
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DB3#FFFFFF#000000##FFFFFF
##502DB31.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502db3;
/* rgb */ color: rgb(80, 45, 179);
/* oklch */ color: oklch(43.1% 0.196 286.9);
Tailwind
colors: {
  custom: {
    50: '#8c6acb',
    500: '#502db3',
    950: '#000000',
  },
}
SCSS
$custom: #502db3;
$custom-light: #8c6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#502db3",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 255.672,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43071,
    "c": 0.19639,
    "h": 286.9
  },
  "luminance": 0.06837
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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