#502AA4#502AA4

#502AA4 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.182 H 290.3°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#502AA4
RGBrgb(80, 42, 164)
HSLhsl(259, 59%, 40%)
HSVhsv(259, 74%, 64%)
CMYKcmyk(51.2%, 74.4%, 0%, 35.7%)
CIE-LABlab(29.52, 46.25, -59.45)
CIE-LCHlch(29.52, 75.32, 307.88°)
OKLaboklab(41.3% 0.0632 -0.1707)
OKLCHoklch(41.3% 0.182 290.3)
XYZxyz(10.8351, 6.0413, 35.7099)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AA4 #7EA42A
analogous
#2A41A4 #502AA4 #8D2AA4
triadic
#502AA4 #A4502A #2AA450
tetradic
#502AA4 #A42A41 #7EA42A #2AA48D
square
#502AA4 #A42A41 #7EA42A #2AA48D
split-complementary
#502AA4 #A48D2A #41A42A
monochromatic
#201143 #381E73 #502AA4 #6A3ECD #906EDA

Accessibility & contrast

On white

9.51
#502AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#502AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AA4
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AA4#FFFFFF#000000##FFFFFF
##502AA41.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A8
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#334B65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502aa4;
/* rgb */ color: rgb(80, 42, 164);
/* oklch */ color: oklch(41.3% 0.182 290.3);
Tailwind
colors: {
  custom: {
    50: '#8a67c0',
    500: '#502aa4',
    950: '#000000',
  },
}
SCSS
$custom: #502aa4;
$custom-light: #8a67c0;
$custom-dark: #000000;
JSON
{
  "hex": "#502aa4",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 258.689,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.413,
    "c": 0.18206,
    "h": 290.3
  },
  "luminance": 0.06042
}

Semantic roles & 50–950 ramp

primary
#502AA4
secondary
#A5C169
accent
#E245B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #502AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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