#502181#502181

#502181 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.152 H 301.6°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#502181
RGBrgb(80, 33, 129)
HSLhsl(269, 59%, 32%)
HSVhsv(269, 74%, 51%)
CMYKcmyk(38%, 74.4%, 0%, 49.4%)
CIE-LABlab(24.88, 41.18, -45.43)
CIE-LCHlch(24.88, 61.32, 312.20°)
OKLaboklab(37.08% 0.0798 -0.1295)
OKLCHoklch(37.08% 0.152 301.6)
XYZxyz(7.8136, 4.3781, 21.1980)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502181 #528121
analogous
#212281 #502181 #802181
triadic
#502181 #815021 #218150
tetradic
#502181 #812122 #528121 #218180
square
#502181 #812122 #528121 #218180
split-complementary
#502181 #818021 #228121
monochromatic
#140820 #321550 #502181 #6E2DB2 #8D4BD1

Accessibility & contrast

On white

11.20
#502181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#502181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502181
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502181#FFFFFF#000000##FFFFFF
##5021811.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#45394F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #502181;
/* rgb */ color: rgb(80, 33, 129);
/* oklch */ color: oklch(37.1% 0.152 301.6);
Tailwind
colors: {
  custom: {
    50: '#8661a6',
    500: '#502181',
    950: '#000000',
  },
}
SCSS
$custom: #502181;
$custom-light: #8661a6;
$custom-dark: #000000;
JSON
{
  "hex": "#502181",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 269.375,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37082,
    "c": 0.1521,
    "h": 301.6
  },
  "luminance": 0.04378
}

Semantic roles & 50–950 ramp

primary
#502181
secondary
#80B44A
accent
#E24596
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #502181

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

Preview Lab → · Contrast checker → · Palette generator →

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