#502BA2#502BA2

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

Color values

HEX#502BA2
RGBrgb(80, 43, 162)
HSLhsl(259, 58%, 40%)
HSVhsv(259, 73%, 64%)
CMYKcmyk(50.6%, 73.5%, 0%, 36.5%)
CIE-LABlab(29.52, 45.17, -58.24)
CIE-LCHlch(29.52, 73.70, 307.80°)
OKLaboklab(41.25% 0.0628 -0.1672)
OKLCHoklch(41.25% 0.179 290.6)
XYZxyz(10.6919, 6.0414, 34.7782)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BA2 #7DA22B
analogous
#2B42A2 #502BA2 #8B2BA2
triadic
#502BA2 #A2502B #2BA250
tetradic
#502BA2 #A22B42 #7DA22B #2BA28B
square
#502BA2 #A22B42 #7DA22B #2BA28B
split-complementary
#502BA2 #A28B2B #42A22B
monochromatic
#201141 #381E72 #502BA2 #6A3ECC #906FD9

Accessibility & contrast

On white

9.51
#502BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#502BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BA2
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BA2#FFFFFF#000000##FFFFFF
##502BA21.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#344B64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502ba2;
/* rgb */ color: rgb(80, 43, 162);
/* oklch */ color: oklch(41.2% 0.179 290.6);
Tailwind
colors: {
  custom: {
    50: '#8968bf',
    500: '#502ba2',
    950: '#000000',
  },
}
SCSS
$custom: #502ba2;
$custom-light: #8968bf;
$custom-dark: #000000;
JSON
{
  "hex": "#502ba2",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 258.655,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41245,
    "c": 0.17861,
    "h": 290.6
  },
  "luminance": 0.06042
}

Semantic roles & 50–950 ramp

primary
#502BA2
secondary
#A5C069
accent
#E147B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #502BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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