#502DA2#502DA2

#502DA2 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.176 H 290.3°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#502DA2
RGBrgb(80, 45, 162)
HSLhsl(258, 57%, 41%)
HSVhsv(258, 72%, 64%)
CMYKcmyk(50.6%, 72.2%, 0%, 36.5%)
CIE-LABlab(29.89, 44.13, -57.63)
CIE-LCHlch(29.89, 72.59, 307.44°)
OKLaboklab(41.51% 0.061 -0.1654)
OKLCHoklch(41.51% 0.176 290.3)
XYZxyz(10.7664, 6.1904, 34.8030)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DA2 #7FA22D
analogous
#2D44A2 #502DA2 #8A2DA2
triadic
#502DA2 #A2502D #2DA250
tetradic
#502DA2 #A22D44 #7FA22D #2DA28A
square
#502DA2 #A22D44 #7FA22D #2DA28A
split-complementary
#502DA2 #A28A2D #44A22D
monochromatic
#211242 #382072 #502DA2 #6B42CA #9072D8

Accessibility & contrast

On white

9.38
#502DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#502DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DA2
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DA2#FFFFFF#000000##FFFFFF
##502DA21.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#344C64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502da2;
/* rgb */ color: rgb(80, 45, 162);
/* oklch */ color: oklch(41.5% 0.176 290.3);
Tailwind
colors: {
  custom: {
    50: '#8969bf',
    500: '#502da2',
    950: '#000000',
  },
}
SCSS
$custom: #502da2;
$custom-light: #8969bf;
$custom-dark: #000000;
JSON
{
  "hex": "#502da2",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 257.949,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41508,
    "c": 0.17631,
    "h": 290.3
  },
  "luminance": 0.06191
}

Semantic roles & 50–950 ramp

primary
#502DA2
secondary
#A6BF6C
accent
#E048B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #502DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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