#502AB9#502AB9

#502AB9 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.3% C 0.206 H 286.2°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#502AB9
RGBrgb(80, 42, 185)
HSLhsl(256, 63%, 45%)
HSVhsv(256, 77%, 73%)
CMYKcmyk(56.8%, 77.3%, 0%, 27.5%)
CIE-LABlab(31.49, 52.18, -68.76)
CIE-LCHlch(31.49, 86.32, 307.19°)
OKLaboklab(43.29% 0.0576 -0.198)
OKLCHoklch(43.29% 0.206 286.2)
XYZxyz(12.8906, 6.8634, 46.5351)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AB9 #93B92A
analogous
#2A4CB9 #502AB9 #982AB9
triadic
#502AB9 #B9502A #2AB950
tetradic
#502AB9 #B92A4C #93B92A #2AB998
square
#502AB9 #B92A4C #93B92A #2AB998
split-complementary
#502AB9 #B9982A #4CB92A
monochromatic
#251355 #3A1F87 #502AB9 #6F4AD6 #977CE1

Accessibility & contrast

On white

8.85
#502AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#502AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AB9
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AB9#FFFFFF#000000##FFFFFF
##502AB91.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBD
Deuteranopia (green-blind)
#0046B6
Tritanopia (blue-blind)
#1D5371
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #502ab9;
/* rgb */ color: rgb(80, 42, 185);
/* oklch */ color: oklch(43.3% 0.206 286.2);
Tailwind
colors: {
  custom: {
    50: '#8d69cf',
    500: '#502ab9',
    950: '#000000',
  },
}
SCSS
$custom: #502ab9;
$custom-light: #8d69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#502ab9",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 255.944,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43289,
    "c": 0.20622,
    "h": 286.2
  },
  "luminance": 0.06864
}

Semantic roles & 50–950 ramp

primary
#502AB9
secondary
#B3CA75
accent
#E642BA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #502AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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