#502AAA#502AAA

#502AAA is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.189 H 289.1°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#502AAA
RGBrgb(80, 42, 170)
HSLhsl(258, 60%, 42%)
HSVhsv(258, 75%, 67%)
CMYKcmyk(52.9%, 75.3%, 0%, 33.3%)
CIE-LABlab(30.07, 47.94, -62.16)
CIE-LCHlch(30.07, 78.50, 307.64°)
OKLaboklab(41.86% 0.0617 -0.1787)
OKLCHoklch(41.86% 0.189 289.1)
XYZxyz(11.3898, 6.2632, 38.6312)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AAA #84AA2A
analogous
#2A44AA #502AAA #902AAA
triadic
#502AAA #AA502A #2AAA50
tetradic
#502AAA #AA2A44 #84AA2A #2AAA90
square
#502AAA #AA2A44 #84AA2A #2AAA90
split-complementary
#502AAA #AA902A #44AA2A
monochromatic
#221248 #391E79 #502AAA #6C41D0 #9272DC

Accessibility & contrast

On white

9.32
#502AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#502AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AAA
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AAA#FFFFFF#000000##FFFFFF
##502AAA1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#2E4D68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502aaa;
/* rgb */ color: rgb(80, 42, 170);
/* oklch */ color: oklch(41.9% 0.189 289.1);
Tailwind
colors: {
  custom: {
    50: '#8b68c4',
    500: '#502aaa',
    950: '#000000',
  },
}
SCSS
$custom: #502aaa;
$custom-light: #8b68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#502aaa",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 257.813,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41856,
    "c": 0.18904,
    "h": 289.1
  },
  "luminance": 0.06264
}

Semantic roles & 50–950 ramp

primary
#502AAA
secondary
#AAC36C
accent
#E444B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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