#502B96#502B96

#502B96 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.164 H 293.4°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#502B96
RGBrgb(80, 43, 150)
HSLhsl(261, 55%, 38%)
HSVhsv(261, 71%, 59%)
CMYKcmyk(46.7%, 71.3%, 0%, 41.2%)
CIE-LABlab(28.47, 41.77, -52.63)
CIE-LCHlch(28.47, 67.19, 308.44°)
OKLaboklab(40.18% 0.0654 -0.1507)
OKLCHoklch(40.18% 0.164 293.4)
XYZxyz(9.6757, 5.6349, 29.4261)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B96 #71962B
analogous
#2B3B96 #502B96 #852B96
triadic
#502B96 #96502B #2B9650
tetradic
#502B96 #962B3B #71962B #2B9685
square
#502B96 #962B3B #71962B #2B9685
split-complementary
#502B96 #96852B #3B962B
monochromatic
#1D1037 #371D66 #502B96 #6939C6 #8D68D4

Accessibility & contrast

On white

9.87
#502B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#502B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B96
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B96#FFFFFF#000000##FFFFFF
##502B961.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#3B465D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502b96;
/* rgb */ color: rgb(80, 43, 150);
/* oklch */ color: oklch(40.2% 0.164 293.4);
Tailwind
colors: {
  custom: {
    50: '#8867b6',
    500: '#502b96',
    950: '#000000',
  },
}
SCSS
$custom: #502b96;
$custom-light: #8867b6;
$custom-dark: #000000;
JSON
{
  "hex": "#502b96",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 150
  },
  "hsl": {
    "h": 260.748,
    "s": 55.44,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4018,
    "c": 0.16429,
    "h": 293.4
  },
  "luminance": 0.05635
}

Semantic roles & 50–950 ramp

primary
#502B96
secondary
#9CBA63
accent
#DF49AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502B96

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

Preview Lab → · Contrast checker → · Palette generator →

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