#502AA9#502AA9

#502AA9 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.188 H 289.3°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#502AA9
RGBrgb(80, 42, 169)
HSLhsl(258, 60%, 41%)
HSVhsv(258, 75%, 66%)
CMYKcmyk(52.7%, 75.1%, 0%, 33.7%)
CIE-LABlab(29.97, 47.66, -61.71)
CIE-LCHlch(29.97, 77.97, 307.68°)
OKLaboklab(41.76% 0.062 -0.1774)
OKLCHoklch(41.76% 0.188 289.3)
XYZxyz(11.2956, 6.2255, 38.1349)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AA9 #83A92A
analogous
#2A43A9 #502AA9 #902AA9
triadic
#502AA9 #A9502A #2AA950
tetradic
#502AA9 #A92A43 #83A92A #2AA990
square
#502AA9 #A92A43 #83A92A #2AA990
split-complementary
#502AA9 #A9902A #43A92A
monochromatic
#221247 #391E78 #502AA9 #6B41D0 #9172DC

Accessibility & contrast

On white

9.35
#502AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502AA9
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AA9#FFFFFF#000000##FFFFFF
##502AA91.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#0043A7
Tritanopia (blue-blind)
#2F4D67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502aa9;
/* rgb */ color: rgb(80, 42, 169);
/* oklch */ color: oklch(41.8% 0.188 289.3);
Tailwind
colors: {
  custom: {
    50: '#8a68c4',
    500: '#502aa9',
    950: '#000000',
  },
}
SCSS
$custom: #502aa9;
$custom-light: #8a68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#502aa9",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 257.953,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41763,
    "c": 0.18789,
    "h": 289.3
  },
  "luminance": 0.06226
}

Semantic roles & 50–950 ramp

primary
#502AA9
secondary
#A9C36C
accent
#E344B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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