#502D98#502D98

#502D98 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.164 H 292.6°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#502D98
RGBrgb(80, 45, 152)
HSLhsl(260, 54%, 39%)
HSVhsv(260, 70%, 60%)
CMYKcmyk(47.4%, 70.4%, 0%, 40.4%)
CIE-LABlab(29.03, 41.27, -52.95)
CIE-LCHlch(29.03, 67.13, 307.93°)
OKLaboklab(40.63% 0.063 -0.1517)
OKLCHoklch(40.63% 0.164 292.6)
XYZxyz(9.9126, 5.8489, 30.3063)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502D98 #75982D
analogous
#2D3F98 #502D98 #852D98
triadic
#502D98 #98502D #2D9850
tetradic
#502D98 #982D3F #75982D #2D9885
square
#502D98 #982D3F #75982D #2D9885
split-complementary
#502D98 #98852D #3F982D
monochromatic
#1E113A #371F69 #502D98 #693DC5 #8E6CD3

Accessibility & contrast

On white

9.68
#502D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#502D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502D98
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502D98#FFFFFF#000000##FFFFFF
##502D981.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#3A485F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #502d98;
/* rgb */ color: rgb(80, 45, 152);
/* oklch */ color: oklch(40.6% 0.164 292.6);
Tailwind
colors: {
  custom: {
    50: '#8869b7',
    500: '#502d98',
    950: '#000000',
  },
}
SCSS
$custom: #502d98;
$custom-light: #8869b7;
$custom-dark: #000000;
JSON
{
  "hex": "#502d98",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 259.626,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40629,
    "c": 0.16423,
    "h": 292.6
  },
  "luminance": 0.05849
}

Semantic roles & 50–950 ramp

primary
#502D98
secondary
#9FBA66
accent
#DE4AAD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502D98

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

Preview Lab → · Contrast checker → · Palette generator →

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