#502DB6#502DB6

#502DB6 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.200 H 286.4°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#502DB6
RGBrgb(80, 45, 182)
HSLhsl(255, 60%, 45%)
HSVhsv(255, 75%, 71%)
CMYKcmyk(56%, 75.3%, 0%, 28.6%)
CIE-LABlab(31.71, 49.87, -66.62)
CIE-LCHlch(31.71, 83.22, 306.82°)
OKLaboklab(43.36% 0.0563 -0.1918)
OKLCHoklch(43.36% 0.2 286.4)
XYZxyz(12.6876, 6.9589, 44.9216)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DB6 #93B62D
analogous
#2D4FB6 #502DB6 #942DB6
triadic
#502DB6 #B6502D #2DB650
tetradic
#502DB6 #B62D4F #93B62D #2DB694
square
#502DB6 #B62D4F #93B62D #2DB694
split-complementary
#502DB6 #B6942D #4FB62D
monochromatic
#251554 #3A2185 #502DB6 #6F4DD3 #977EDF

Accessibility & contrast

On white

8.78
#502DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#502DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DB6
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DB6#FFFFFF#000000##FFFFFF
##502DB61.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#215370
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #502db6;
/* rgb */ color: rgb(80, 45, 182);
/* oklch */ color: oklch(43.4% 0.200 286.4);
Tailwind
colors: {
  custom: {
    50: '#8c6acd',
    500: '#502db6',
    950: '#000000',
  },
}
SCSS
$custom: #502db6;
$custom-light: #8c6acd;
$custom-dark: #000000;
JSON
{
  "hex": "#502db6",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 255.328,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43355,
    "c": 0.19987,
    "h": 286.4
  },
  "luminance": 0.0696
}

Semantic roles & 50–950 ramp

primary
#502DB6
secondary
#B3C877
accent
#E344BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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