#502BAB#502BAB

#502BAB is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.189 H 288.7°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#502BAB
RGBrgb(80, 43, 171)
HSLhsl(257, 60%, 42%)
HSVhsv(257, 75%, 67%)
CMYKcmyk(53.2%, 74.9%, 0%, 32.9%)
CIE-LABlab(30.33, 47.73, -62.32)
CIE-LCHlch(30.33, 78.50, 307.45°)
OKLaboklab(42.07% 0.0607 -0.1792)
OKLCHoklch(42.07% 0.189 288.7)
XYZxyz(11.5207, 6.3730, 39.1432)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BAB #86AB2B
analogous
#2B46AB #502BAB #902BAB
triadic
#502BAB #AB502B #2BAB50
tetradic
#502BAB #AB2B46 #86AB2B #2BAB90
square
#502BAB #AB2B46 #86AB2B #2BAB90
split-complementary
#502BAB #AB902B #46AB2B
monochromatic
#221249 #391F7A #502BAB #6C43D0 #9274DC

Accessibility & contrast

On white

9.23
#502BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#502BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BAB
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BAB#FFFFFF#000000##FFFFFF
##502BAB1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#2D4E69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502bab;
/* rgb */ color: rgb(80, 43, 171);
/* oklch */ color: oklch(42.1% 0.189 288.7);
Tailwind
colors: {
  custom: {
    50: '#8b68c5',
    500: '#502bab',
    950: '#000000',
  },
}
SCSS
$custom: #502bab;
$custom-light: #8b68c5;
$custom-dark: #000000;
JSON
{
  "hex": "#502bab",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 257.344,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42073,
    "c": 0.18915,
    "h": 288.7
  },
  "luminance": 0.06374
}

Semantic roles & 50–950 ramp

primary
#502BAB
secondary
#ABC46E
accent
#E345B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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