#502DA1#502DA1

#502DA1 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.175 H 290.5°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#502DA1
RGBrgb(80, 45, 161)
HSLhsl(258, 56%, 40%)
HSVhsv(258, 72%, 63%)
CMYKcmyk(50.3%, 72%, 0%, 36.9%)
CIE-LABlab(29.80, 43.84, -57.17)
CIE-LCHlch(29.80, 72.04, 307.49°)
OKLaboklab(41.42% 0.0613 -0.1641)
OKLCHoklch(41.42% 0.175 290.5)
XYZxyz(10.6778, 6.1550, 34.3367)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DA1 #7EA12D
analogous
#2D44A1 #502DA1 #8A2DA1
triadic
#502DA1 #A1502D #2DA150
tetradic
#502DA1 #A12D44 #7EA12D #2DA18A
square
#502DA1 #A12D44 #7EA12D #2DA18A
split-complementary
#502DA1 #A18A2D #44A12D
monochromatic
#201241 #382071 #502DA1 #6A41CA #9071D7

Accessibility & contrast

On white

9.41
#502DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#502DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DA1
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DA1#FFFFFF#000000##FFFFFF
##502DA11.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#354B64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502da1;
/* rgb */ color: rgb(80, 45, 161);
/* oklch */ color: oklch(41.4% 0.175 290.5);
Tailwind
colors: {
  custom: {
    50: '#8969be',
    500: '#502da1',
    950: '#000000',
  },
}
SCSS
$custom: #502da1;
$custom-light: #8969be;
$custom-dark: #000000;
JSON
{
  "hex": "#502da1",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 258.103,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41419,
    "c": 0.17512,
    "h": 290.5
  },
  "luminance": 0.06155
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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