#502AA0#502AA0

#502AA0 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.177 H 291.2°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#502AA0
RGBrgb(80, 42, 160)
HSLhsl(259, 58%, 40%)
HSVhsv(259, 74%, 63%)
CMYKcmyk(50%, 73.8%, 0%, 37.3%)
CIE-LABlab(29.16, 45.12, -57.61)
CIE-LCHlch(29.16, 73.18, 308.06°)
OKLaboklab(40.94% 0.0642 -0.1653)
OKLCHoklch(40.94% 0.177 291.2)
XYZxyz(10.4796, 5.8991, 33.8374)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AA0 #7AA02A
analogous
#2A3FA0 #502AA0 #8B2AA0
triadic
#502AA0 #A0502A #2AA050
tetradic
#502AA0 #A02A3F #7AA02A #2AA08B
square
#502AA0 #A02A3F #7AA02A #2AA08B
split-complementary
#502AA0 #A08B2A #3FA02A
monochromatic
#20113F #381D70 #502AA0 #6A3CCC #8F6CD8

Accessibility & contrast

On white

9.63
#502AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#502AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AA0
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AA0#FFFFFF#000000##FFFFFF
##502AA01.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A3
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#354962
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502aa0;
/* rgb */ color: rgb(80, 42, 160);
/* oklch */ color: oklch(40.9% 0.177 291.2);
Tailwind
colors: {
  custom: {
    50: '#8967bd',
    500: '#502aa0',
    950: '#000000',
  },
}
SCSS
$custom: #502aa0;
$custom-light: #8967bd;
$custom-dark: #000000;
JSON
{
  "hex": "#502aa0",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 259.322,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40935,
    "c": 0.17737,
    "h": 291.2
  },
  "luminance": 0.05899
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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