#502B9D#502B9D

#502B9D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.173 H 291.7°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#502B9D
RGBrgb(80, 43, 157)
HSLhsl(259, 57%, 39%)
HSVhsv(259, 73%, 62%)
CMYKcmyk(49%, 72.6%, 0%, 38.4%)
CIE-LABlab(29.07, 43.75, -55.92)
CIE-LCHlch(29.07, 71.01, 308.04°)
OKLaboklab(40.8% 0.064 -0.1604)
OKLCHoklch(40.8% 0.173 291.7)
XYZxyz(10.2562, 5.8672, 32.4838)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B9D #789D2B
analogous
#2B3F9D #502B9D #892B9D
triadic
#502B9D #9D502B #2B9D50
tetradic
#502B9D #9D2B3F #789D2B #2B9D89
square
#502B9D #9D2B3F #789D2B #2B9D89
split-complementary
#502B9D #9D892B #3F9D2B
monochromatic
#1F113D #381E6D #502B9D #6A3CCA #8E6CD7

Accessibility & contrast

On white

9.66
#502B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#502B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B9D
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B9D#FFFFFF#000000##FFFFFF
##502B9D1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#374961
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #502b9d;
/* rgb */ color: rgb(80, 43, 157);
/* oklch */ color: oklch(40.8% 0.173 291.7);
Tailwind
colors: {
  custom: {
    50: '#8968bb',
    500: '#502b9d',
    950: '#000000',
  },
}
SCSS
$custom: #502b9d;
$custom-light: #8968bb;
$custom-dark: #000000;
JSON
{
  "hex": "#502b9d",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 259.474,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40796,
    "c": 0.17268,
    "h": 291.7
  },
  "luminance": 0.05868
}

Semantic roles & 50–950 ramp

primary
#502B9D
secondary
#A1BD66
accent
#E048AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #502B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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