#502DA5#502DA5

#502DA5 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.180 H 289.6°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#502DA5
RGBrgb(80, 45, 165)
HSLhsl(258, 57%, 41%)
HSVhsv(258, 73%, 65%)
CMYKcmyk(51.5%, 72.7%, 0%, 35.3%)
CIE-LABlab(30.15, 44.99, -59.01)
CIE-LCHlch(30.15, 74.20, 307.32°)
OKLaboklab(41.78% 0.0604 -0.1695)
OKLCHoklch(41.78% 0.18 289.6)
XYZxyz(11.0362, 6.2984, 36.2242)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DA5 #82A52D
analogous
#2D46A5 #502DA5 #8C2DA5
triadic
#502DA5 #A5502D #2DA550
tetradic
#502DA5 #A52D46 #82A52D #2DA58C
square
#502DA5 #A52D46 #82A52D #2DA58C
split-complementary
#502DA5 #A58C2D #46A52D
monochromatic
#211345 #392075 #502DA5 #6B43CC #9173D9

Accessibility & contrast

On white

9.29
#502DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#502DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DA5
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DA5#FFFFFF#000000##FFFFFF
##502DA51.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#324D66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502da5;
/* rgb */ color: rgb(80, 45, 165);
/* oklch */ color: oklch(41.8% 0.180 289.6);
Tailwind
colors: {
  custom: {
    50: '#8a69c1',
    500: '#502da5',
    950: '#000000',
  },
}
SCSS
$custom: #502da5;
$custom-light: #8a69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#502da5",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 257.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41778,
    "c": 0.1799,
    "h": 289.6
  },
  "luminance": 0.06299
}

Semantic roles & 50–950 ramp

primary
#502DA5
secondary
#A8C16D
accent
#E047B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #502DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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