#502AC1#502AC1

#502AC1 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.1% C 0.215 H 284.9°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#502AC1
RGBrgb(80, 42, 193)
HSLhsl(255, 64%, 46%)
HSVhsv(255, 78%, 76%)
CMYKcmyk(58.5%, 78.2%, 0%, 24.3%)
CIE-LABlab(32.28, 54.42, -72.19)
CIE-LCHlch(32.28, 90.40, 307.01°)
OKLaboklab(44.08% 0.0553 -0.208)
OKLCHoklch(44.08% 0.215 284.9)
XYZxyz(13.7589, 7.2108, 51.1085)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AC1 #9BC12A
analogous
#2A50C1 #502AC1 #9B2AC1
triadic
#502AC1 #C1502A #2AC150
tetradic
#502AC1 #C12A50 #9BC12A #2AC19B
square
#502AC1 #C12A50 #9BC12A #2AC19B
split-complementary
#502AC1 #C19B2A #50C12A
monochromatic
#26145C #3B1F8F #502AC1 #724FD9 #9A82E4

Accessibility & contrast

On white

8.60
#502AC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#502AC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AC1
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AC1#FFFFFF#000000##FFFFFF
##502AC11.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C5
Deuteranopia (green-blind)
#0047BE
Tritanopia (blue-blind)
#0C5675
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #502ac1;
/* rgb */ color: rgb(80, 42, 193);
/* oklch */ color: oklch(44.1% 0.215 284.9);
Tailwind
colors: {
  custom: {
    50: '#8e69d5',
    500: '#502ac1',
    950: '#000000',
  },
}
SCSS
$custom: #502ac1;
$custom-light: #8e69d5;
$custom-dark: #000000;
JSON
{
  "hex": "#502ac1",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 193
  },
  "hsl": {
    "h": 255.099,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44075,
    "c": 0.21523,
    "h": 284.9
  },
  "luminance": 0.07212
}

Semantic roles & 50–950 ramp

primary
#502AC1
secondary
#B8CD7A
accent
#E741BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502AC1

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

Preview Lab → · Contrast checker → · Palette generator →

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