#502D9B#502D9B

#502D9B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.168 H 291.8°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#502D9B
RGBrgb(80, 45, 155)
HSLhsl(259, 55%, 39%)
HSVhsv(259, 71%, 61%)
CMYKcmyk(48.4%, 71%, 0%, 39.2%)
CIE-LABlab(29.28, 42.13, -54.37)
CIE-LCHlch(29.28, 68.78, 307.77°)
OKLaboklab(40.89% 0.0624 -0.1558)
OKLCHoklch(40.89% 0.168 291.8)
XYZxyz(10.1614, 5.9484, 31.6168)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D9B #789B2D
analogous
#2D419B #502D9B #872D9B
triadic
#502D9B #9B502D #2D9B50
tetradic
#502D9B #9B2D41 #789B2D #2D9B87
square
#502D9B #9B2D41 #789B2D #2D9B87
split-complementary
#502D9B #9B872D #419B2D
monochromatic
#1F113C #381F6C #502D9B #6A3EC7 #8E6ED5

Accessibility & contrast

On white

9.59
#502D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#502D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D9B
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D9B#FFFFFF#000000##FFFFFF
##502D9B1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#384960
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502d9b;
/* rgb */ color: rgb(80, 45, 155);
/* oklch */ color: oklch(40.9% 0.168 291.8);
Tailwind
colors: {
  custom: {
    50: '#8869b9',
    500: '#502d9b',
    950: '#000000',
  },
}
SCSS
$custom: #502d9b;
$custom-light: #8869b9;
$custom-dark: #000000;
JSON
{
  "hex": "#502d9b",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 259.091,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40889,
    "c": 0.16788,
    "h": 291.8
  },
  "luminance": 0.05949
}

Semantic roles & 50–950 ramp

primary
#502D9B
secondary
#A1BC68
accent
#DE49AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #502D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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