#502A97#502A97

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

Color values

HEX#502A97
RGBrgb(80, 42, 151)
HSLhsl(261, 56%, 38%)
HSVhsv(261, 72%, 59%)
CMYKcmyk(47%, 72.2%, 0%, 40.8%)
CIE-LABlab(28.37, 42.58, -53.41)
CIE-LCHlch(28.37, 68.31, 308.56°)
OKLaboklab(40.13% 0.0662 -0.153)
OKLCHoklch(40.13% 0.167 293.4)
XYZxyz(9.7206, 5.5955, 29.8400)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502A97 #71972A
analogous
#2A3B97 #502A97 #862A97
triadic
#502A97 #97502A #2A9750
tetradic
#502A97 #972A3B #71972A #2A9786
square
#502A97 #972A3B #71972A #2A9786
split-complementary
#502A97 #97862A #3B972A
monochromatic
#1D0F37 #371D67 #502A97 #6937C7 #8D67D5

Accessibility & contrast

On white

9.91
#502A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#502A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502A97
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502A97#FFFFFF#000000##FFFFFF
##502A971.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502a97;
/* rgb */ color: rgb(80, 42, 151);
/* oklch */ color: oklch(40.1% 0.167 293.4);
Tailwind
colors: {
  custom: {
    50: '#8867b6',
    500: '#502a97',
    950: '#000000',
  },
}
SCSS
$custom: #502a97;
$custom-light: #8867b6;
$custom-dark: #000000;
JSON
{
  "hex": "#502a97",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 260.917,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40133,
    "c": 0.16671,
    "h": 293.4
  },
  "luminance": 0.05596
}

Semantic roles & 50–950 ramp

primary
#502A97
secondary
#9CBB62
accent
#E048AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502A97

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

Preview Lab → · Contrast checker → · Palette generator →

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