#502C99#502C99

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

Color values

HEX#502C99
RGBrgb(80, 44, 153)
HSLhsl(260, 55%, 39%)
HSVhsv(260, 71%, 60%)
CMYKcmyk(47.7%, 71.2%, 0%, 40%)
CIE-LABlab(28.92, 42.09, -53.74)
CIE-LCHlch(28.92, 68.26, 308.07°)
OKLaboklab(40.58% 0.0638 -0.154)
OKLCHoklch(40.58% 0.167 292.5)
XYZxyz(9.9571, 5.8064, 30.7269)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C99 #75992C
analogous
#2C3E99 #502C99 #862C99
triadic
#502C99 #99502C #2C9950
tetradic
#502C99 #992C3E #75992C #2C9986
square
#502C99 #992C3E #75992C #2C9986
split-complementary
#502C99 #99862C #3E992C
monochromatic
#1E113A #371E69 #502C99 #693BC7 #8E6BD4

Accessibility & contrast

On white

9.72
#502C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#502C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C99
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C99#FFFFFF#000000##FFFFFF
##502C991.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #502c99;
/* rgb */ color: rgb(80, 44, 153);
/* oklch */ color: oklch(40.6% 0.167 292.5);
Tailwind
colors: {
  custom: {
    50: '#8868b8',
    500: '#502c99',
    950: '#000000',
  },
}
SCSS
$custom: #502c99;
$custom-light: #8868b8;
$custom-dark: #000000;
JSON
{
  "hex": "#502c99",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 153
  },
  "hsl": {
    "h": 259.817,
    "s": 55.33,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40578,
    "c": 0.16668,
    "h": 292.5
  },
  "luminance": 0.05807
}

Semantic roles & 50–950 ramp

primary
#502C99
secondary
#9FBB66
accent
#DF49AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502C99

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

Preview Lab → · Contrast checker → · Palette generator →

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