#502C88#502C88

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

Color values

HEX#502C88
RGBrgb(80, 44, 136)
HSLhsl(263, 51%, 35%)
HSVhsv(263, 68%, 53%)
CMYKcmyk(41.2%, 67.6%, 0%, 46.7%)
CIE-LABlab(27.53, 37.29, -45.51)
CIE-LCHlch(27.53, 58.84, 309.33°)
OKLaboklab(39.15% 0.0665 -0.1298)
OKLCHoklch(39.15% 0.146 297.1)
XYZxyz(8.6517, 5.2843, 23.8519)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C88 #64882C
analogous
#2C3688 #502C88 #7E2C88
triadic
#502C88 #88502C #2C8850
tetradic
#502C88 #882C36 #64882C #2C887E
square
#502C88 #882C36 #64882C #2C887E
split-complementary
#502C88 #887E2C #36882C
monochromatic
#1A0E2C #351D5A #502C88 #6B3BB6 #8C62CC

Accessibility & contrast

On white

10.21
#502C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#502C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C88
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C88#FFFFFF#000000##FFFFFF
##502C881.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#424156
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #502c88;
/* rgb */ color: rgb(80, 44, 136);
/* oklch */ color: oklch(39.1% 0.146 297.1);
Tailwind
colors: {
  custom: {
    50: '#8668ab',
    500: '#502c88',
    950: '#000000',
  },
}
SCSS
$custom: #502c88;
$custom-light: #8668ab;
$custom-dark: #000000;
JSON
{
  "hex": "#502c88",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 136
  },
  "hsl": {
    "h": 263.478,
    "s": 51.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39149,
    "c": 0.14586,
    "h": 297.1
  },
  "luminance": 0.05284
}

Semantic roles & 50–950 ramp

primary
#502C88
secondary
#91B35D
accent
#DB4DA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502C88

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

Preview Lab → · Contrast checker → · Palette generator →

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