#502C87#502C87

#502C87 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.145 H 297.4°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#502C87
RGBrgb(80, 44, 135)
HSLhsl(264, 51%, 35%)
HSVhsv(264, 67%, 53%)
CMYKcmyk(40.7%, 67.4%, 0%, 47.1%)
CIE-LABlab(27.45, 37.01, -45.02)
CIE-LCHlch(27.45, 58.28, 309.43°)
OKLaboklab(39.07% 0.0666 -0.1283)
OKLCHoklch(39.07% 0.145 297.4)
XYZxyz(8.5810, 5.2560, 23.4794)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C87 #63872C
analogous
#2C3687 #502C87 #7D2C87
triadic
#502C87 #87502C #2C8750
tetradic
#502C87 #872C36 #63872C #2C877D
square
#502C87 #872C36 #63872C #2C877D
split-complementary
#502C87 #877D2C #36872C
monochromatic
#190E2B #351D59 #502C87 #6B3BB5 #8C62CC

Accessibility & contrast

On white

10.24
#502C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#502C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C87
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C87#FFFFFF#000000##FFFFFF
##502C871.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#434155
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #502c87;
/* rgb */ color: rgb(80, 44, 135);
/* oklch */ color: oklch(39.1% 0.145 297.4);
Tailwind
colors: {
  custom: {
    50: '#8667ab',
    500: '#502c87',
    950: '#000000',
  },
}
SCSS
$custom: #502c87;
$custom-light: #8667ab;
$custom-dark: #000000;
JSON
{
  "hex": "#502c87",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 263.736,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39068,
    "c": 0.14461,
    "h": 297.4
  },
  "luminance": 0.05256
}

Semantic roles & 50–950 ramp

primary
#502C87
secondary
#90B25D
accent
#DA4DA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502C87

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

Preview Lab → · Contrast checker → · Palette generator →

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