#502C8B#502C8B

#502C8B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.150 H 296.2°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#502C8B
RGBrgb(80, 44, 139)
HSLhsl(263, 52%, 36%)
HSVhsv(263, 68%, 55%)
CMYKcmyk(42.4%, 68.3%, 0%, 45.5%)
CIE-LABlab(27.77, 38.13, -46.99)
CIE-LCHlch(27.77, 60.52, 309.06°)
OKLaboklab(39.39% 0.0661 -0.1342)
OKLCHoklch(39.39% 0.15 296.2)
XYZxyz(8.8679, 5.3707, 24.9905)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502C8B #678B2C
analogous
#2C378B #502C8B #7F2C8B
triadic
#502C8B #8B502C #2C8B50
tetradic
#502C8B #8B2C37 #678B2C #2C8B7F
square
#502C8B #8B2C37 #678B2C #2C8B7F
split-complementary
#502C8B #8B7F2C #378B2C
monochromatic
#1A0F2E #351D5D #502C8B #6B3BB9 #8C64CE

Accessibility & contrast

On white

10.12
#502C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#502C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502C8B
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502C8B#FFFFFF#000000##FFFFFF
##502C8B1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#414257
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #502c8b;
/* rgb */ color: rgb(80, 44, 139);
/* oklch */ color: oklch(39.4% 0.150 296.2);
Tailwind
colors: {
  custom: {
    50: '#8668ae',
    500: '#502c8b',
    950: '#000000',
  },
}
SCSS
$custom: #502c8b;
$custom-light: #8668ae;
$custom-dark: #000000;
JSON
{
  "hex": "#502c8b",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 262.737,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39393,
    "c": 0.14958,
    "h": 296.2
  },
  "luminance": 0.05371
}

Semantic roles & 50–950 ramp

primary
#502C8B
secondary
#94B45F
accent
#DB4CA5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #502C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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