#502AB3#502AB3

#502AB3 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.199 H 287.3°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#502AB3
RGBrgb(80, 42, 179)
HSLhsl(257, 62%, 43%)
HSVhsv(257, 77%, 70%)
CMYKcmyk(55.3%, 76.5%, 0%, 29.8%)
CIE-LABlab(30.91, 50.48, -66.15)
CIE-LCHlch(30.91, 83.22, 307.35°)
OKLaboklab(42.71% 0.0593 -0.1904)
OKLCHoklch(42.71% 0.199 287.3)
XYZxyz(12.2705, 6.6154, 43.2694)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AB3 #8DB32A
analogous
#2A49B3 #502AB3 #942AB3
triadic
#502AB3 #B3502A #2AB350
tetradic
#502AB3 #B32A49 #8DB32A #2AB394
square
#502AB3 #B32A49 #8DB32A #2AB394
split-complementary
#502AB3 #B3942A #49B32A
monochromatic
#241350 #3A1E81 #502AB3 #6E46D4 #9578DF

Accessibility & contrast

On white

9.04
#502AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#502AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AB3
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AB3#FFFFFF#000000##FFFFFF
##502AB31.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#25516D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #502ab3;
/* rgb */ color: rgb(80, 42, 179);
/* oklch */ color: oklch(42.7% 0.199 287.3);
Tailwind
colors: {
  custom: {
    50: '#8c68cb',
    500: '#502ab3',
    950: '#000000',
  },
}
SCSS
$custom: #502ab3;
$custom-light: #8c68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#502ab3",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 256.642,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42709,
    "c": 0.1994,
    "h": 287.3
  },
  "luminance": 0.06616
}

Semantic roles & 50–950 ramp

primary
#502AB3
secondary
#AFC772
accent
#E543B8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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