#502187#502187

#502187 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.159 H 299.6°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#502187
RGBrgb(80, 33, 135)
HSLhsl(268, 61%, 33%)
HSVhsv(268, 76%, 53%)
CMYKcmyk(40.7%, 75.6%, 0%, 47.1%)
CIE-LABlab(25.39, 42.75, -48.37)
CIE-LCHlch(25.39, 64.55, 311.47°)
OKLaboklab(37.6% 0.0785 -0.1382)
OKLCHoklch(37.6% 0.159 299.6)
XYZxyz(8.2242, 4.5424, 23.3604)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502187 #588721
analogous
#212587 #502187 #832187
triadic
#502187 #875021 #218750
tetradic
#502187 #872125 #588721 #218783
square
#502187 #872125 #588721 #218783
split-complementary
#502187 #878321 #258721
monochromatic
#160925 #331556 #502187 #6D2DB8 #8C4FD4

Accessibility & contrast

On white

11.00
#502187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#502187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502187
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502187#FFFFFF#000000##FFFFFF
##5021871.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502187;
/* rgb */ color: rgb(80, 33, 135);
/* oklch */ color: oklch(37.6% 0.159 299.6);
Tailwind
colors: {
  custom: {
    50: '#8761ab',
    500: '#502187',
    950: '#000000',
  },
}
SCSS
$custom: #502187;
$custom-light: #8761ab;
$custom-dark: #000000;
JSON
{
  "hex": "#502187",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 267.647,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37597,
    "c": 0.15889,
    "h": 299.6
  },
  "luminance": 0.04542
}

Semantic roles & 50–950 ramp

primary
#502187
secondary
#86B74D
accent
#E4449A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #502187

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

Preview Lab → · Contrast checker → · Palette generator →

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