#502D96#502D96

#502D96 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.162 H 293.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#502D96
RGBrgb(80, 45, 150)
HSLhsl(260, 54%, 38%)
HSVhsv(260, 70%, 59%)
CMYKcmyk(46.7%, 70%, 0%, 41.2%)
CIE-LABlab(28.86, 40.69, -52.00)
CIE-LCHlch(28.86, 66.03, 308.05°)
OKLaboklab(40.46% 0.0633 -0.1489)
OKLCHoklch(40.46% 0.162 293)
XYZxyz(9.7502, 5.7840, 29.4509)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D96 #73962D
analogous
#2D3E96 #502D96 #842D96
triadic
#502D96 #96502D #2D9650
tetradic
#502D96 #962D3E #73962D #2D9684
square
#502D96 #962D3E #73962D #2D9684
split-complementary
#502D96 #96842D #3E962D
monochromatic
#1E1138 #371F67 #502D96 #693CC4 #8D6BD3

Accessibility & contrast

On white

9.74
#502D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#502D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D96
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D96#FFFFFF#000000##FFFFFF
##502D961.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#3B475E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #502d96;
/* rgb */ color: rgb(80, 45, 150);
/* oklch */ color: oklch(40.5% 0.162 293.0);
Tailwind
colors: {
  custom: {
    50: '#8869b6',
    500: '#502d96',
    950: '#000000',
  },
}
SCSS
$custom: #502d96;
$custom-light: #8869b6;
$custom-dark: #000000;
JSON
{
  "hex": "#502d96",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 260,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40458,
    "c": 0.16179,
    "h": 293
  },
  "luminance": 0.05784
}

Semantic roles & 50–950 ramp

primary
#502D96
secondary
#9DB965
accent
#DD4BAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502D96

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

Preview Lab → · Contrast checker → · Palette generator →

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