#502D90#502D90

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

Color values

HEX#502D90
RGBrgb(80, 45, 144)
HSLhsl(261, 52%, 37%)
HSVhsv(261, 69%, 56%)
CMYKcmyk(44.4%, 68.7%, 0%, 43.5%)
CIE-LABlab(28.37, 38.99, -49.11)
CIE-LCHlch(28.37, 62.70, 308.45°)
OKLaboklab(39.95% 0.0643 -0.1404)
OKLCHoklch(39.95% 0.154 294.6)
XYZxyz(9.2793, 5.5956, 26.9713)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D90 #6D902D
analogous
#2D3C90 #502D90 #822D90
triadic
#502D90 #90502D #2D9050
tetradic
#502D90 #902D3C #6D902D #2D9082
square
#502D90 #902D3C #6D902D #2D9082
split-complementary
#502D90 #90822D #3C902D
monochromatic
#1C1033 #361E61 #502D90 #6A3CBF #8C68D0

Accessibility & contrast

On white

9.91
#502D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#502D90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D90
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D90#FFFFFF#000000##FFFFFF
##502D901.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004493
Deuteranopia (green-blind)
#00418E
Tritanopia (blue-blind)
#3E455A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502d90;
/* rgb */ color: rgb(80, 45, 144);
/* oklch */ color: oklch(40.0% 0.154 294.6);
Tailwind
colors: {
  custom: {
    50: '#8768b1',
    500: '#502d90',
    950: '#000000',
  },
}
SCSS
$custom: #502d90;
$custom-light: #8768b1;
$custom-dark: #000000;
JSON
{
  "hex": "#502d90",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 144
  },
  "hsl": {
    "h": 261.212,
    "s": 52.381,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39951,
    "c": 0.15441,
    "h": 294.6
  },
  "luminance": 0.05596
}

Semantic roles & 50–950 ramp

primary
#502D90
secondary
#99B662
accent
#DC4CA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502D90

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

Preview Lab → · Contrast checker → · Palette generator →

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