#502DA3#502DA3

#502DA3 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.178 H 290.0°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#502DA3
RGBrgb(80, 45, 163)
HSLhsl(258, 57%, 41%)
HSVhsv(258, 72%, 64%)
CMYKcmyk(50.9%, 72.4%, 0%, 36.1%)
CIE-LABlab(29.98, 44.42, -58.09)
CIE-LCHlch(29.98, 73.13, 307.40°)
OKLaboklab(41.6% 0.0608 -0.1668)
OKLCHoklch(41.6% 0.178 290)
XYZxyz(10.8556, 6.2261, 35.2730)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DA3 #80A32D
analogous
#2D45A3 #502DA3 #8B2DA3
triadic
#502DA3 #A3502D #2DA350
tetradic
#502DA3 #A32D45 #80A32D #2DA38B
square
#502DA3 #A32D45 #80A32D #2DA38B
split-complementary
#502DA3 #A38B2D #45A32D
monochromatic
#211343 #382073 #502DA3 #6B42CB #9072D8

Accessibility & contrast

On white

9.35
#502DA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#502DA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DA3
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DA3#FFFFFF#000000##FFFFFF
##502DA31.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#334C65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502da3;
/* rgb */ color: rgb(80, 45, 163);
/* oklch */ color: oklch(41.6% 0.178 290.0);
Tailwind
colors: {
  custom: {
    50: '#8969bf',
    500: '#502da3',
    950: '#000000',
  },
}
SCSS
$custom: #502da3;
$custom-light: #8969bf;
$custom-dark: #000000;
JSON
{
  "hex": "#502da3",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 163
  },
  "hsl": {
    "h": 257.797,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41598,
    "c": 0.17751,
    "h": 290
  },
  "luminance": 0.06227
}

Semantic roles & 50–950 ramp

primary
#502DA3
secondary
#A7C06C
accent
#E048B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #502DA3

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

Preview Lab → · Contrast checker → · Palette generator →

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