#502D84#502D84

#502D84 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.139 H 298.1°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#502D84
RGBrgb(80, 45, 132)
HSLhsl(264, 49%, 35%)
HSVhsv(264, 66%, 52%)
CMYKcmyk(39.4%, 65.9%, 0%, 48.2%)
CIE-LABlab(27.43, 35.61, -43.18)
CIE-LCHlch(27.43, 55.97, 309.51°)
OKLaboklab(38.98% 0.0658 -0.1229)
OKLCHoklch(38.98% 0.139 298.1)
XYZxyz(8.4105, 5.2481, 22.3952)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D84 #61842D
analogous
#2D3584 #502D84 #7C2D84
triadic
#502D84 #84502D #2D8450
tetradic
#502D84 #842D35 #61842D #2D847C
square
#502D84 #842D35 #61842D #2D847C
split-complementary
#502D84 #847C2D #35842D
monochromatic
#190E29 #341D56 #502D84 #6C3DB2 #8C62C9

Accessibility & contrast

On white

10.25
#502D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#502D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D84
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D84#FFFFFF#000000##FFFFFF
##502D841.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004187
Deuteranopia (green-blind)
#004082
Tritanopia (blue-blind)
#444154
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #502d84;
/* rgb */ color: rgb(80, 45, 132);
/* oklch */ color: oklch(39.0% 0.139 298.1);
Tailwind
colors: {
  custom: {
    50: '#8568a8',
    500: '#502d84',
    950: '#000000',
  },
}
SCSS
$custom: #502d84;
$custom-light: #8568a8;
$custom-dark: #000000;
JSON
{
  "hex": "#502d84",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 132
  },
  "hsl": {
    "h": 264.138,
    "s": 49.153,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3898,
    "c": 0.13943,
    "h": 298.1
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#502D84
secondary
#8FB05D
accent
#D94FA1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #502D84

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

Preview Lab → · Contrast checker → · Palette generator →

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