#502DAC#502DAC

#502DAC is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.188 H 288.2°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#502DAC
RGBrgb(80, 45, 172)
HSLhsl(257, 59%, 43%)
HSVhsv(257, 74%, 67%)
CMYKcmyk(53.5%, 73.8%, 0%, 32.5%)
CIE-LABlab(30.78, 47.01, -62.19)
CIE-LCHlch(30.78, 77.95, 307.09°)
OKLaboklab(42.42% 0.0588 -0.1788)
OKLCHoklch(42.42% 0.188 288.2)
XYZxyz(11.6909, 6.5602, 39.6720)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DAC #89AC2D
analogous
#2D4AAC #502DAC #8F2DAC
triadic
#502DAC #AC502D #2DAC50
tetradic
#502DAC #AC2D4A #89AC2D #2DAC8F
square
#502DAC #AC2D4A #89AC2D #2DAC8F
split-complementary
#502DAC #AC8F2D #4AAC2D
monochromatic
#23144B #39207B #502DAC #6D47CF #9378DC

Accessibility & contrast

On white

9.08
#502DAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#502DAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DAC
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DAC#FFFFFF#000000##FFFFFF
##502DAC1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#2C4F6A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502dac;
/* rgb */ color: rgb(80, 45, 172);
/* oklch */ color: oklch(42.4% 0.188 288.2);
Tailwind
colors: {
  custom: {
    50: '#8b6ac6',
    500: '#502dac',
    950: '#000000',
  },
}
SCSS
$custom: #502dac;
$custom-light: #8b6ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#502dac",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 172
  },
  "hsl": {
    "h": 256.535,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42418,
    "c": 0.18819,
    "h": 288.2
  },
  "luminance": 0.06561
}

Semantic roles & 50–950 ramp

primary
#502DAC
secondary
#ADC471
accent
#E246B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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