#502B98#502B98

#502B98 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.167 H 292.9°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#502B98
RGBrgb(80, 43, 152)
HSLhsl(260, 56%, 38%)
HSVhsv(260, 72%, 60%)
CMYKcmyk(47.4%, 71.7%, 0%, 40.4%)
CIE-LABlab(28.64, 42.34, -53.58)
CIE-LCHlch(28.64, 68.29, 308.32°)
OKLaboklab(40.35% 0.065 -0.1535)
OKLCHoklch(40.35% 0.167 292.9)
XYZxyz(9.8381, 5.6999, 30.2815)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502B98 #73982B
analogous
#2B3C98 #502B98 #862B98
triadic
#502B98 #98502B #2B9850
tetradic
#502B98 #982B3C #73982B #2B9886
square
#502B98 #982B3C #73982B #2B9886
split-complementary
#502B98 #98862B #3C982B
monochromatic
#1E1039 #371E68 #502B98 #6939C7 #8D69D5

Accessibility & contrast

On white

9.81
#502B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#502B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502B98
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502B98#FFFFFF#000000##FFFFFF
##502B981.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#3A475E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #502b98;
/* rgb */ color: rgb(80, 43, 152);
/* oklch */ color: oklch(40.4% 0.167 292.9);
Tailwind
colors: {
  custom: {
    50: '#8868b7',
    500: '#502b98',
    950: '#000000',
  },
}
SCSS
$custom: #502b98;
$custom-light: #8868b7;
$custom-dark: #000000;
JSON
{
  "hex": "#502b98",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 260.367,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40354,
    "c": 0.1667,
    "h": 292.9
  },
  "luminance": 0.057
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #502B98

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

Preview Lab → · Contrast checker → · Palette generator →

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