#502AB0#502AB0

#502AB0 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.196 H 287.9°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#502AB0
RGBrgb(80, 42, 176)
HSLhsl(257, 61%, 43%)
HSVhsv(257, 76%, 69%)
CMYKcmyk(54.5%, 76.1%, 0%, 31%)
CIE-LABlab(30.63, 49.64, -64.83)
CIE-LCHlch(30.63, 81.65, 307.44°)
OKLaboklab(42.42% 0.0601 -0.1865)
OKLCHoklch(42.42% 0.196 287.9)
XYZxyz(11.9704, 6.4954, 41.6889)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AB0 #8AB02A
analogous
#2A47B0 #502AB0 #932AB0
triadic
#502AB0 #B0502A #2AB050
tetradic
#502AB0 #B02A47 #8AB02A #2AB093
square
#502AB0 #B02A47 #8AB02A #2AB093
split-complementary
#502AB0 #B0932A #47B02A
monochromatic
#23124D #3A1E7F #502AB0 #6D45D3 #9476DE

Accessibility & contrast

On white

9.13
#502AB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#502AB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AB0
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AB0#FFFFFF#000000##FFFFFF
##502AB01.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB4
Deuteranopia (green-blind)
#0044AE
Tritanopia (blue-blind)
#28506B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502ab0;
/* rgb */ color: rgb(80, 42, 176);
/* oklch */ color: oklch(42.4% 0.196 287.9);
Tailwind
colors: {
  custom: {
    50: '#8c68c9',
    500: '#502ab0',
    950: '#000000',
  },
}
SCSS
$custom: #502ab0;
$custom-light: #8c68c9;
$custom-dark: #000000;
JSON
{
  "hex": "#502ab0",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 176
  },
  "hsl": {
    "h": 257.015,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42422,
    "c": 0.19596,
    "h": 287.9
  },
  "luminance": 0.06496
}

Semantic roles & 50–950 ramp

primary
#502AB0
secondary
#AEC670
accent
#E543B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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