#502AA1#502AA1

#502AA1 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.179 H 291.0°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#502AA1
RGBrgb(80, 42, 161)
HSLhsl(259, 59%, 40%)
HSVhsv(259, 74%, 63%)
CMYKcmyk(50.3%, 73.9%, 0%, 36.9%)
CIE-LABlab(29.25, 45.40, -58.07)
CIE-LCHlch(29.25, 73.71, 308.02°)
OKLaboklab(41.03% 0.064 -0.1667)
OKLCHoklch(41.03% 0.179 291)
XYZxyz(10.5674, 5.9342, 34.2999)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AA1 #7BA12A
analogous
#2A3FA1 #502AA1 #8C2AA1
triadic
#502AA1 #A1502A #2AA150
tetradic
#502AA1 #A12A3F #7BA12A #2AA18C
square
#502AA1 #A12A3F #7BA12A #2AA18C
split-complementary
#502AA1 #A18C2A #3FA12A
monochromatic
#201140 #381D70 #502AA1 #6A3CCC #8F6DD9

Accessibility & contrast

On white

9.60
#502AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#502AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AA1
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AA1#FFFFFF#000000##FFFFFF
##502AA11.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#354A63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502aa1;
/* rgb */ color: rgb(80, 42, 161);
/* oklch */ color: oklch(41.0% 0.179 291.0);
Tailwind
colors: {
  custom: {
    50: '#8967be',
    500: '#502aa1',
    950: '#000000',
  },
}
SCSS
$custom: #502aa1;
$custom-light: #8967be;
$custom-dark: #000000;
JSON
{
  "hex": "#502aa1",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 259.16,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41026,
    "c": 0.17855,
    "h": 291
  },
  "luminance": 0.05935
}

Semantic roles & 50–950 ramp

primary
#502AA1
secondary
#A3C067
accent
#E246B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #502AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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