#502D9E#502D9E

#502D9E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.172 H 291.1°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#502D9E
RGBrgb(80, 45, 158)
HSLhsl(259, 56%, 40%)
HSVhsv(259, 72%, 62%)
CMYKcmyk(49.4%, 71.5%, 0%, 38%)
CIE-LABlab(29.54, 42.98, -55.77)
CIE-LCHlch(29.54, 70.41, 307.62°)
OKLaboklab(41.15% 0.0619 -0.16)
OKLCHoklch(41.15% 0.172 291.1)
XYZxyz(10.4165, 6.0505, 32.9601)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D9E #7B9E2D
analogous
#2D439E #502D9E #892D9E
triadic
#502D9E #9E502D #2D9E50
tetradic
#502D9E #9E2D43 #7B9E2D #2D9E89
square
#502D9E #9E2D43 #7B9E2D #2D9E89
split-complementary
#502D9E #9E892D #439E2D
monochromatic
#20123F #381F6E #502D9E #6A40C9 #8F6FD6

Accessibility & contrast

On white

9.50
#502D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#502D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D9E
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D9E#FFFFFF#000000##FFFFFF
##502D9E1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#374A62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502d9e;
/* rgb */ color: rgb(80, 45, 158);
/* oklch */ color: oklch(41.2% 0.172 291.1);
Tailwind
colors: {
  custom: {
    50: '#8969bc',
    500: '#502d9e',
    950: '#000000',
  },
}
SCSS
$custom: #502d9e;
$custom-light: #8969bc;
$custom-dark: #000000;
JSON
{
  "hex": "#502d9e",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 258.584,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41153,
    "c": 0.1715,
    "h": 291.1
  },
  "luminance": 0.06051
}

Semantic roles & 50–950 ramp

primary
#502D9E
secondary
#A3BD69
accent
#DF49B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #502D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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