#502BA1#502BA1

#502BA1 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.177 H 290.8°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#502BA1
RGBrgb(80, 43, 161)
HSLhsl(259, 58%, 40%)
HSVhsv(259, 73%, 63%)
CMYKcmyk(50.3%, 73.3%, 0%, 36.9%)
CIE-LABlab(29.43, 44.89, -57.78)
CIE-LCHlch(29.43, 73.17, 307.84°)
OKLaboklab(41.15% 0.0631 -0.1658)
OKLCHoklch(41.15% 0.177 290.8)
XYZxyz(10.6033, 6.0060, 34.3119)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BA1 #7CA12B
analogous
#2B41A1 #502BA1 #8B2BA1
triadic
#502BA1 #A1502B #2BA150
tetradic
#502BA1 #A12B41 #7CA12B #2BA18B
square
#502BA1 #A12B41 #7CA12B #2BA18B
split-complementary
#502BA1 #A18B2B #41A12B
monochromatic
#201140 #381E71 #502BA1 #6A3ECB #8F6ED8

Accessibility & contrast

On white

9.54
#502BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#502BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BA1
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BA1#FFFFFF#000000##FFFFFF
##502BA11.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#354A63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502ba1;
/* rgb */ color: rgb(80, 43, 161);
/* oklch */ color: oklch(41.2% 0.177 290.8);
Tailwind
colors: {
  custom: {
    50: '#8968be',
    500: '#502ba1',
    950: '#000000',
  },
}
SCSS
$custom: #502ba1;
$custom-light: #8968be;
$custom-dark: #000000;
JSON
{
  "hex": "#502ba1",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 258.814,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.41154,
    "c": 0.17742,
    "h": 290.8
  },
  "luminance": 0.06006
}

Semantic roles & 50–950 ramp

primary
#502BA1
secondary
#A4BF69
accent
#E147B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #502BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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