#502184#502184

#502184 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.155 H 300.6°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#502184
RGBrgb(80, 33, 132)
HSLhsl(268, 60%, 32%)
HSVhsv(268, 75%, 52%)
CMYKcmyk(39.4%, 75%, 0%, 48.2%)
CIE-LABlab(25.13, 41.96, -46.90)
CIE-LCHlch(25.13, 62.94, 311.82°)
OKLaboklab(37.34% 0.0791 -0.1338)
OKLCHoklch(37.34% 0.156 300.6)
XYZxyz(8.0160, 4.4591, 22.2637)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502184 #558421
analogous
#212384 #502184 #822184
triadic
#502184 #845021 #218450
tetradic
#502184 #842123 #558421 #218482
square
#502184 #842123 #558421 #218482
split-complementary
#502184 #848221 #238421
monochromatic
#150922 #321553 #502184 #6E2DB5 #8C4DD2

Accessibility & contrast

On white

11.10
#502184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#502184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502184
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502184#FFFFFF#000000##FFFFFF
##5021841.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003B82
Tritanopia (blue-blind)
#443A50
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #502184;
/* rgb */ color: rgb(80, 33, 132);
/* oklch */ color: oklch(37.3% 0.155 300.6);
Tailwind
colors: {
  custom: {
    50: '#8661a9',
    500: '#502184',
    950: '#000000',
  },
}
SCSS
$custom: #502184;
$custom-light: #8661a9;
$custom-dark: #000000;
JSON
{
  "hex": "#502184",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 132
  },
  "hsl": {
    "h": 268.485,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37337,
    "c": 0.1555,
    "h": 300.6
  },
  "luminance": 0.04459
}

Semantic roles & 50–950 ramp

primary
#502184
secondary
#83B64B
accent
#E34598
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #502184

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

Preview Lab → · Contrast checker → · Palette generator →

#502184 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva