#502D99#502D99

#502D99 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.165 H 292.3°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#502D99
RGBrgb(80, 45, 153)
HSLhsl(259, 55%, 39%)
HSVhsv(259, 71%, 60%)
CMYKcmyk(47.7%, 70.6%, 0%, 40%)
CIE-LABlab(29.11, 41.55, -53.42)
CIE-LCHlch(29.11, 67.68, 307.88°)
OKLaboklab(40.72% 0.0628 -0.1531)
OKLCHoklch(40.72% 0.165 292.3)
XYZxyz(9.9948, 5.8818, 30.7395)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D99 #76992D
analogous
#2D4099 #502D99 #862D99
triadic
#502D99 #99502D #2D9950
tetradic
#502D99 #992D40 #76992D #2D9986
square
#502D99 #992D40 #76992D #2D9986
split-complementary
#502D99 #99862D #40992D
monochromatic
#1F113A #371F6A #502D99 #6A3DC6 #8E6CD4

Accessibility & contrast

On white

9.65
#502D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#502D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D99
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D99#FFFFFF#000000##FFFFFF
##502D991.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#3A485F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502d99;
/* rgb */ color: rgb(80, 45, 153);
/* oklch */ color: oklch(40.7% 0.165 292.3);
Tailwind
colors: {
  custom: {
    50: '#8869b8',
    500: '#502d99',
    950: '#000000',
  },
}
SCSS
$custom: #502d99;
$custom-light: #8869b8;
$custom-dark: #000000;
JSON
{
  "hex": "#502d99",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 259.444,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40716,
    "c": 0.16545,
    "h": 292.3
  },
  "luminance": 0.05882
}

Semantic roles & 50–950 ramp

primary
#502D99
secondary
#A0BB67
accent
#DE4AAE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502D99

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

Preview Lab → · Contrast checker → · Palette generator →

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