#502AA7#502AA7

#502AA7 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.186 H 289.7°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#502AA7
RGBrgb(80, 42, 167)
HSLhsl(258, 60%, 41%)
HSVhsv(258, 75%, 65%)
CMYKcmyk(52.1%, 74.9%, 0%, 34.5%)
CIE-LABlab(29.79, 47.10, -60.81)
CIE-LCHlch(29.79, 76.91, 307.76°)
OKLaboklab(41.58% 0.0625 -0.1747)
OKLCHoklch(41.58% 0.186 289.7)
XYZxyz(11.1093, 6.1509, 37.1536)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AA7 #81A72A
analogous
#2A42A7 #502AA7 #8E2AA7
triadic
#502AA7 #A7502A #2AA750
tetradic
#502AA7 #A72A42 #81A72A #2AA78E
square
#502AA7 #A72A42 #81A72A #2AA78E
split-complementary
#502AA7 #A78E2A #42A72A
monochromatic
#211145 #391E76 #502AA7 #6B3FCF #9170DB

Accessibility & contrast

On white

9.42
#502AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#502AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AA7
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AA7#FFFFFF#000000##FFFFFF
##502AA71.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#304C66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502aa7;
/* rgb */ color: rgb(80, 42, 167);
/* oklch */ color: oklch(41.6% 0.186 289.7);
Tailwind
colors: {
  custom: {
    50: '#8a68c2',
    500: '#502aa7',
    950: '#000000',
  },
}
SCSS
$custom: #502aa7;
$custom-light: #8a68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#502aa7",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 258.24,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41577,
    "c": 0.18556,
    "h": 289.7
  },
  "luminance": 0.06151
}

Semantic roles & 50–950 ramp

primary
#502AA7
secondary
#A8C26B
accent
#E345B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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