#502BAD#502BAD

#502BAD is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.191 H 288.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#502BAD
RGBrgb(80, 43, 173)
HSLhsl(257, 60%, 42%)
HSVhsv(257, 75%, 68%)
CMYKcmyk(53.8%, 75.1%, 0%, 32.2%)
CIE-LABlab(30.52, 48.30, -63.22)
CIE-LCHlch(30.52, 79.56, 307.38°)
OKLaboklab(42.26% 0.0602 -0.1818)
OKLCHoklch(42.26% 0.191 288.3)
XYZxyz(11.7128, 6.4498, 40.1548)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BAD #88AD2B
analogous
#2B47AD #502BAD #912BAD
triadic
#502BAD #AD502B #2BAD50
tetradic
#502BAD #AD2B47 #88AD2B #2BAD91
square
#502BAD #AD2B47 #88AD2B #2BAD91
split-complementary
#502BAD #AD912B #47AD2B
monochromatic
#23134B #391F7C #502BAD #6C45D1 #9376DD

Accessibility & contrast

On white

9.17
#502BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#502BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BAD
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BAD#FFFFFF#000000##FFFFFF
##502BAD1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB1
Deuteranopia (green-blind)
#0044AB
Tritanopia (blue-blind)
#2B4F6A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #502bad;
/* rgb */ color: rgb(80, 43, 173);
/* oklch */ color: oklch(42.3% 0.191 288.3);
Tailwind
colors: {
  custom: {
    50: '#8b68c7',
    500: '#502bad',
    950: '#000000',
  },
}
SCSS
$custom: #502bad;
$custom-light: #8b68c7;
$custom-dark: #000000;
JSON
{
  "hex": "#502bad",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 257.077,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4226,
    "c": 0.19148,
    "h": 288.3
  },
  "luminance": 0.0645
}

Semantic roles & 50–950 ramp

primary
#502BAD
secondary
#ACC46F
accent
#E344B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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