#502D85#502D85

#502D85 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.141 H 297.8°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#502D85
RGBrgb(80, 45, 133)
HSLhsl(264, 49%, 35%)
HSVhsv(264, 66%, 52%)
CMYKcmyk(39.8%, 66.2%, 0%, 47.8%)
CIE-LABlab(27.51, 35.89, -43.68)
CIE-LCHlch(27.51, 56.53, 309.41°)
OKLaboklab(39.06% 0.0657 -0.1244)
OKLCHoklch(39.06% 0.141 297.8)
XYZxyz(8.4792, 5.2756, 22.7573)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D85 #62852D
analogous
#2D3685 #502D85 #7C2D85
triadic
#502D85 #85502D #2D8550
tetradic
#502D85 #852D36 #62852D #2D857C
square
#502D85 #852D36 #62852D #2D857C
split-complementary
#502D85 #857C2D #36852D
monochromatic
#190E2A #341E57 #502D85 #6C3CB3 #8C62CA

Accessibility & contrast

On white

10.22
#502D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#502D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D85
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D85#FFFFFF#000000##FFFFFF
##502D851.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004188
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#434155
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #502d85;
/* rgb */ color: rgb(80, 45, 133);
/* oklch */ color: oklch(39.1% 0.141 297.8);
Tailwind
colors: {
  custom: {
    50: '#8568a9',
    500: '#502d85',
    950: '#000000',
  },
}
SCSS
$custom: #502d85;
$custom-light: #8568a9;
$custom-dark: #000000;
JSON
{
  "hex": "#502d85",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 133
  },
  "hsl": {
    "h": 263.864,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39058,
    "c": 0.1407,
    "h": 297.8
  },
  "luminance": 0.05276
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502D85

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

Preview Lab → · Contrast checker → · Palette generator →

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