#502D8A#502D8A

#502D8A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.147 H 296.3°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#502D8A
RGBrgb(80, 45, 138)
HSLhsl(263, 51%, 36%)
HSVhsv(263, 67%, 54%)
CMYKcmyk(42%, 67.4%, 0%, 45.9%)
CIE-LABlab(27.89, 37.29, -46.17)
CIE-LCHlch(27.89, 59.35, 308.93°)
OKLaboklab(39.46% 0.0651 -0.1317)
OKLCHoklch(39.46% 0.147 296.3)
XYZxyz(8.8329, 5.4170, 24.6200)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D8A #678A2D
analogous
#2D388A #502D8A #7E2D8A
triadic
#502D8A #8A502D #2D8A50
tetradic
#502D8A #8A2D38 #678A2D #2D8A7E
square
#502D8A #8A2D38 #678A2D #2D8A7E
split-complementary
#502D8A #8A7E2D #388A2D
monochromatic
#1A0F2E #351E5C #502D8A #6B3CB8 #8C65CD

Accessibility & contrast

On white

10.08
#502D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#502D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D8A
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D8A#FFFFFF#000000##FFFFFF
##502D8A1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#414357
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502d8a;
/* rgb */ color: rgb(80, 45, 138);
/* oklch */ color: oklch(39.5% 0.147 296.3);
Tailwind
colors: {
  custom: {
    50: '#8668ad',
    500: '#502d8a',
    950: '#000000',
  },
}
SCSS
$custom: #502d8a;
$custom-light: #8668ad;
$custom-dark: #000000;
JSON
{
  "hex": "#502d8a",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 262.581,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39458,
    "c": 0.14696,
    "h": 296.3
  },
  "luminance": 0.05417
}

Semantic roles & 50–950 ramp

primary
#502D8A
secondary
#94B360
accent
#DA4DA5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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