#502C8F#502C8F

#502C8F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.154 H 295.1°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#502C8F
RGBrgb(80, 44, 143)
HSLhsl(262, 53%, 37%)
HSVhsv(262, 69%, 56%)
CMYKcmyk(44.1%, 69.2%, 0%, 43.9%)
CIE-LABlab(28.09, 39.26, -48.95)
CIE-LCHlch(28.09, 62.75, 308.73°)
OKLaboklab(39.72% 0.0655 -0.1399)
OKLCHoklch(39.72% 0.155 295.1)
XYZxyz(9.1655, 5.4898, 26.5580)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C8F #6B8F2C
analogous
#2C3A8F #502C8F #822C8F
triadic
#502C8F #8F502C #2C8F50
tetradic
#502C8F #8F2C3A #6B8F2C #2C8F82
square
#502C8F #8F2C3A #6B8F2C #2C8F82
split-complementary
#502C8F #8F822C #3A8F2C
monochromatic
#1C0F31 #361E60 #502C8F #6A3ABE #8C66D0

Accessibility & contrast

On white

10.01
#502C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#502C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C8F
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C8F#FFFFFF#000000##FFFFFF
##502C8F1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#3F445A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502c8f;
/* rgb */ color: rgb(80, 44, 143);
/* oklch */ color: oklch(39.7% 0.154 295.1);
Tailwind
colors: {
  custom: {
    50: '#8768b1',
    500: '#502c8f',
    950: '#000000',
  },
}
SCSS
$custom: #502c8f;
$custom-light: #8768b1;
$custom-dark: #000000;
JSON
{
  "hex": "#502c8f",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 261.818,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39724,
    "c": 0.1545,
    "h": 295.1
  },
  "luminance": 0.0549
}

Semantic roles & 50–950 ramp

primary
#502C8F
secondary
#97B661
accent
#DC4BA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #502C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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