#502B97#502B97

#502B97 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.165 H 293.2°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#502B97
RGBrgb(80, 43, 151)
HSLhsl(261, 56%, 38%)
HSVhsv(261, 72%, 59%)
CMYKcmyk(47%, 71.5%, 0%, 40.8%)
CIE-LABlab(28.56, 42.05, -53.10)
CIE-LCHlch(28.56, 67.74, 308.38°)
OKLaboklab(40.27% 0.0652 -0.1521)
OKLCHoklch(40.27% 0.165 293.2)
XYZxyz(9.7565, 5.6673, 29.8520)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B97 #72972B
analogous
#2B3C97 #502B97 #862B97
triadic
#502B97 #97502B #2B9750
tetradic
#502B97 #972B3C #72972B #2B9786
square
#502B97 #972B3C #72972B #2B9786
split-complementary
#502B97 #97862B #3C972B
monochromatic
#1E1038 #371D67 #502B97 #6939C7 #8D68D4

Accessibility & contrast

On white

9.84
#502B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502B97
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B97#FFFFFF#000000##FFFFFF
##502B971.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#3B465E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502b97;
/* rgb */ color: rgb(80, 43, 151);
/* oklch */ color: oklch(40.3% 0.165 293.2);
Tailwind
colors: {
  custom: {
    50: '#8867b6',
    500: '#502b97',
    950: '#000000',
  },
}
SCSS
$custom: #502b97;
$custom-light: #8867b6;
$custom-dark: #000000;
JSON
{
  "hex": "#502b97",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 260.556,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40267,
    "c": 0.16549,
    "h": 293.2
  },
  "luminance": 0.05668
}

Semantic roles & 50–950 ramp

primary
#502B97
secondary
#9DBB63
accent
#DF49AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502B97

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

Preview Lab → · Contrast checker → · Palette generator →

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