#502D91#502D91

#502D91 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.156 H 294.3°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#502D91
RGBrgb(80, 45, 145)
HSLhsl(261, 53%, 37%)
HSVhsv(261, 69%, 57%)
CMYKcmyk(44.8%, 69%, 0%, 43.1%)
CIE-LABlab(28.45, 39.27, -49.59)
CIE-LCHlch(28.45, 63.26, 308.37°)
OKLaboklab(40.03% 0.0642 -0.1418)
OKLCHoklch(40.03% 0.156 294.3)
XYZxyz(9.3561, 5.6263, 27.3756)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D91 #6E912D
analogous
#2D3C91 #502D91 #822D91
triadic
#502D91 #91502D #2D9150
tetradic
#502D91 #912D3C #6E912D #2D9182
square
#502D91 #912D3C #6E912D #2D9182
split-complementary
#502D91 #91822D #3C912D
monochromatic
#1C1034 #361F62 #502D91 #6A3BC0 #8D68D0

Accessibility & contrast

On white

9.88
#502D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#502D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D91
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D91#FFFFFF#000000##FFFFFF
##502D911.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#3E455B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502d91;
/* rgb */ color: rgb(80, 45, 145);
/* oklch */ color: oklch(40.0% 0.156 294.3);
Tailwind
colors: {
  custom: {
    50: '#8768b2',
    500: '#502d91',
    950: '#000000',
  },
}
SCSS
$custom: #502d91;
$custom-light: #8768b2;
$custom-dark: #000000;
JSON
{
  "hex": "#502d91",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 145
  },
  "hsl": {
    "h": 261,
    "s": 52.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40035,
    "c": 0.15564,
    "h": 294.3
  },
  "luminance": 0.05627
}

Semantic roles & 50–950 ramp

primary
#502D91
secondary
#9AB763
accent
#DC4CAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502D91

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

Preview Lab → · Contrast checker → · Palette generator →

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