#502AA6#502AA6

#502AA6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.184 H 289.9°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#502AA6
RGBrgb(80, 42, 166)
HSLhsl(258, 60%, 41%)
HSVhsv(258, 75%, 65%)
CMYKcmyk(51.8%, 74.7%, 0%, 34.9%)
CIE-LABlab(29.70, 46.81, -60.36)
CIE-LCHlch(29.70, 76.38, 307.80°)
OKLaboklab(41.48% 0.0627 -0.1734)
OKLCHoklch(41.48% 0.184 289.9)
XYZxyz(11.0172, 6.1141, 36.6686)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AA6 #80A62A
analogous
#2A42A6 #502AA6 #8E2AA6
triadic
#502AA6 #A6502A #2AA650
tetradic
#502AA6 #A62A42 #80A62A #2AA68E
square
#502AA6 #A62A42 #80A62A #2AA68E
split-complementary
#502AA6 #A68E2A #42A62A
monochromatic
#211144 #381E75 #502AA6 #6B3FCE #9070DB

Accessibility & contrast

On white

9.45
#502AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#502AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AA6
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AA6#FFFFFF#000000##FFFFFF
##502AA61.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#314C66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502aa6;
/* rgb */ color: rgb(80, 42, 166);
/* oklch */ color: oklch(41.5% 0.184 289.9);
Tailwind
colors: {
  custom: {
    50: '#8a68c1',
    500: '#502aa6',
    950: '#000000',
  },
}
SCSS
$custom: #502aa6;
$custom-light: #8a68c1;
$custom-dark: #000000;
JSON
{
  "hex": "#502aa6",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 258.387,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41484,
    "c": 0.1844,
    "h": 289.9
  },
  "luminance": 0.06115
}

Semantic roles & 50–950 ramp

primary
#502AA6
secondary
#A7C26A
accent
#E345B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #502AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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