#502DB8#502DB8

#502DB8 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.5% C 0.202 H 286.0°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#502DB8
RGBrgb(80, 45, 184)
HSLhsl(255, 61%, 45%)
HSVhsv(255, 76%, 72%)
CMYKcmyk(56.5%, 75.5%, 0%, 27.8%)
CIE-LABlab(31.90, 50.45, -67.50)
CIE-LCHlch(31.90, 84.27, 306.77°)
OKLaboklab(43.55% 0.0558 -0.1943)
OKLCHoklch(43.55% 0.202 286)
XYZxyz(12.8958, 7.0422, 46.0179)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DB8 #95B82D
analogous
#2D4FB8 #502DB8 #962DB8
triadic
#502DB8 #B8502D #2DB850
tetradic
#502DB8 #B82D4F #95B82D #2DB896
square
#502DB8 #B82D4F #95B82D #2DB896
split-complementary
#502DB8 #B8962D #4FB82D
monochromatic
#251556 #3B2187 #502DB8 #704ED4 #9880E0

Accessibility & contrast

On white

8.72
#502DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#502DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DB8
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DB8#FFFFFF#000000##FFFFFF
##502DB81.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0047B5
Tritanopia (blue-blind)
#1E5471
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #502db8;
/* rgb */ color: rgb(80, 45, 184);
/* oklch */ color: oklch(43.5% 0.202 286.0);
Tailwind
colors: {
  custom: {
    50: '#8d6acf',
    500: '#502db8',
    950: '#000000',
  },
}
SCSS
$custom: #502db8;
$custom-light: #8d6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#502db8",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 255.108,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43546,
    "c": 0.20218,
    "h": 286
  },
  "luminance": 0.07043
}

Semantic roles & 50–950 ramp

primary
#502DB8
secondary
#B4C978
accent
#E444BC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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