#502C98#502C98

#502C98 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.165 H 292.7°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#502C98
RGBrgb(80, 44, 152)
HSLhsl(260, 55%, 38%)
HSVhsv(260, 71%, 60%)
CMYKcmyk(47.4%, 71.1%, 0%, 40.4%)
CIE-LABlab(28.83, 41.81, -53.27)
CIE-LCHlch(28.83, 67.71, 308.13°)
OKLaboklab(40.49% 0.064 -0.1526)
OKLCHoklch(40.49% 0.165 292.7)
XYZxyz(9.8749, 5.7735, 30.2938)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C98 #74982C
analogous
#2C3E98 #502C98 #862C98
triadic
#502C98 #98502C #2C9850
tetradic
#502C98 #982C3E #74982C #2C9886
square
#502C98 #982C3E #74982C #2C9886
split-complementary
#502C98 #98862C #3E982C
monochromatic
#1E1139 #371E69 #502C98 #693BC6 #8E6AD4

Accessibility & contrast

On white

9.75
#502C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#502C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C98
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C98#FFFFFF#000000##FFFFFF
##502C981.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502c98;
/* rgb */ color: rgb(80, 44, 152);
/* oklch */ color: oklch(40.5% 0.165 292.7);
Tailwind
colors: {
  custom: {
    50: '#8868b7',
    500: '#502c98',
    950: '#000000',
  },
}
SCSS
$custom: #502c98;
$custom-light: #8868b7;
$custom-dark: #000000;
JSON
{
  "hex": "#502c98",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 260,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40491,
    "c": 0.16547,
    "h": 292.7
  },
  "luminance": 0.05774
}

Semantic roles & 50–950 ramp

primary
#502C98
secondary
#9EBB65
accent
#DE49AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502C98

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

Preview Lab → · Contrast checker → · Palette generator →

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