#502ABA#502ABA

#502ABA is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.4% C 0.207 H 286.1°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#502ABA
RGBrgb(80, 42, 186)
HSLhsl(256, 63%, 45%)
HSVhsv(256, 77%, 73%)
CMYKcmyk(57%, 77.4%, 0%, 27.1%)
CIE-LABlab(31.59, 52.46, -69.20)
CIE-LCHlch(31.59, 86.83, 307.17°)
OKLaboklab(43.39% 0.0574 -0.1993)
OKLCHoklch(43.39% 0.207 286.1)
XYZxyz(12.9965, 6.9058, 47.0930)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502ABA #94BA2A
analogous
#2A4CBA #502ABA #982ABA
triadic
#502ABA #BA502A #2ABA50
tetradic
#502ABA #BA2A4C #94BA2A #2ABA98
square
#502ABA #BA2A4C #94BA2A #2ABA98
split-complementary
#502ABA #BA982A #4CBA2A
monochromatic
#251356 #3B1F88 #502ABA #704BD6 #977DE2

Accessibility & contrast

On white

8.82
#502ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#502ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502ABA
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502ABA#FFFFFF#000000##FFFFFF
##502ABA1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBE
Deuteranopia (green-blind)
#0046B7
Tritanopia (blue-blind)
#1B5471
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #502aba;
/* rgb */ color: rgb(80, 42, 186);
/* oklch */ color: oklch(43.4% 0.207 286.1);
Tailwind
colors: {
  custom: {
    50: '#8d69d0',
    500: '#502aba',
    950: '#000000',
  },
}
SCSS
$custom: #502aba;
$custom-light: #8d69d0;
$custom-dark: #000000;
JSON
{
  "hex": "#502aba",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 255.833,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43386,
    "c": 0.20735,
    "h": 286.1
  },
  "luminance": 0.06907
}

Semantic roles & 50–950 ramp

primary
#502ABA
secondary
#B4CA76
accent
#E642BB
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #502ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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