#502D8F#502D8F

#502D8F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.153 H 294.9°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#502D8F
RGBrgb(80, 45, 143)
HSLhsl(261, 52%, 37%)
HSVhsv(261, 69%, 56%)
CMYKcmyk(44.1%, 68.5%, 0%, 43.9%)
CIE-LABlab(28.29, 38.70, -48.62)
CIE-LCHlch(28.29, 62.15, 308.52°)
OKLaboklab(39.87% 0.0644 -0.139)
OKLCHoklch(39.87% 0.153 294.9)
XYZxyz(9.2032, 5.5652, 26.5706)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D8F #6C8F2D
analogous
#2D3B8F #502D8F #812D8F
triadic
#502D8F #8F502D #2D8F50
tetradic
#502D8F #8F2D3B #6C8F2D #2D8F81
square
#502D8F #8F2D3B #6C8F2D #2D8F81
split-complementary
#502D8F #8F812D #3B8F2D
monochromatic
#1C1032 #361E60 #502D8F #6A3CBE #8C67CF

Accessibility & contrast

On white

9.94
#502D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#502D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D8F
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D8F#FFFFFF#000000##FFFFFF
##502D8F1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#3F455A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502d8f;
/* rgb */ color: rgb(80, 45, 143);
/* oklch */ color: oklch(39.9% 0.153 294.9);
Tailwind
colors: {
  custom: {
    50: '#8768b1',
    500: '#502d8f',
    950: '#000000',
  },
}
SCSS
$custom: #502d8f;
$custom-light: #8768b1;
$custom-dark: #000000;
JSON
{
  "hex": "#502d8f",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 261.429,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39868,
    "c": 0.15318,
    "h": 294.9
  },
  "luminance": 0.05565
}

Semantic roles & 50–950 ramp

primary
#502D8F
secondary
#98B662
accent
#DC4CA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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