#502C91#502C91

#502C91 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.157 H 294.6°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#502C91
RGBrgb(80, 44, 145)
HSLhsl(261, 53%, 37%)
HSVhsv(261, 70%, 57%)
CMYKcmyk(44.8%, 69.7%, 0%, 43.1%)
CIE-LABlab(28.25, 39.82, -49.92)
CIE-LCHlch(28.25, 63.86, 308.58°)
OKLaboklab(39.89% 0.0652 -0.1428)
OKLCHoklch(39.89% 0.157 294.6)
XYZxyz(9.3184, 5.5509, 27.3630)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C91 #6D912C
analogous
#2C3B91 #502C91 #832C91
triadic
#502C91 #91502C #2C9150
tetradic
#502C91 #912C3B #6D912C #2C9183
square
#502C91 #912C3B #6D912C #2C9183
split-complementary
#502C91 #91832C #3B912C
monochromatic
#1C1033 #361E62 #502C91 #6A3AC0 #8C67D1

Accessibility & contrast

On white

9.95
#502C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#502C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C91
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C91#FFFFFF#000000##FFFFFF
##502C911.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#3E455B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #502c91;
/* rgb */ color: rgb(80, 44, 145);
/* oklch */ color: oklch(39.9% 0.157 294.6);
Tailwind
colors: {
  custom: {
    50: '#8768b2',
    500: '#502c91',
    950: '#000000',
  },
}
SCSS
$custom: #502c91;
$custom-light: #8768b2;
$custom-dark: #000000;
JSON
{
  "hex": "#502c91",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 145
  },
  "hsl": {
    "h": 261.386,
    "s": 53.439,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39892,
    "c": 0.15695,
    "h": 294.6
  },
  "luminance": 0.05551
}

Semantic roles & 50–950 ramp

primary
#502C91
secondary
#99B762
accent
#DD4BA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502C91

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

Preview Lab → · Contrast checker → · Palette generator →

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