#502186#502186

#502186 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.158 H 299.9°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#502186
RGBrgb(80, 33, 134)
HSLhsl(268, 60%, 33%)
HSVhsv(268, 75%, 53%)
CMYKcmyk(40.3%, 75.4%, 0%, 47.5%)
CIE-LABlab(25.30, 42.49, -47.88)
CIE-LCHlch(25.30, 64.02, 311.58°)
OKLaboklab(37.51% 0.0787 -0.1367)
OKLCHoklch(37.51% 0.158 299.9)
XYZxyz(8.1541, 4.5143, 22.9914)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502186 #578621
analogous
#212486 #502186 #822186
triadic
#502186 #865021 #218650
tetradic
#502186 #862124 #578621 #218682
square
#502186 #862124 #578621 #218682
split-complementary
#502186 #868221 #248621
monochromatic
#150924 #331555 #502186 #6D2DB7 #8C4ED3

Accessibility & contrast

On white

11.04
#502186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#502186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502186
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502186#FFFFFF#000000##FFFFFF
##5021861.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003B84
Tritanopia (blue-blind)
#433B52
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #502186;
/* rgb */ color: rgb(80, 33, 134);
/* oklch */ color: oklch(37.5% 0.158 299.9);
Tailwind
colors: {
  custom: {
    50: '#8661aa',
    500: '#502186',
    950: '#000000',
  },
}
SCSS
$custom: #502186;
$custom-light: #8661aa;
$custom-dark: #000000;
JSON
{
  "hex": "#502186",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 267.921,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3751,
    "c": 0.15776,
    "h": 299.9
  },
  "luminance": 0.04514
}

Semantic roles & 50–950 ramp

primary
#502186
secondary
#85B74C
accent
#E44499
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #502186

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

Preview Lab → · Contrast checker → · Palette generator →

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