#502CB5#502CB5

#502CB5 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.200 H 286.7°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#502CB5
RGBrgb(80, 44, 181)
HSLhsl(256, 61%, 44%)
HSVhsv(256, 76%, 71%)
CMYKcmyk(55.8%, 75.7%, 0%, 29%)
CIE-LABlab(31.45, 50.08, -66.47)
CIE-LCHlch(31.45, 83.23, 307.00°)
OKLaboklab(43.14% 0.0573 -0.1913)
OKLCHoklch(43.14% 0.2 286.7)
XYZxyz(12.5469, 6.8423, 44.3667)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CB5 #91B52C
analogous
#2C4DB5 #502CB5 #952CB5
triadic
#502CB5 #B5502C #2CB550
tetradic
#502CB5 #B52C4D #91B52C #2CB595
square
#502CB5 #B52C4D #91B52C #2CB595
split-complementary
#502CB5 #B5952C #4DB52C
monochromatic
#241453 #3A2084 #502CB5 #6F4BD3 #967CDF

Accessibility & contrast

On white

8.87
#502CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#502CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CB5
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CB5#FFFFFF#000000##FFFFFF
##502CB51.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#22526F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #502cb5;
/* rgb */ color: rgb(80, 44, 181);
/* oklch */ color: oklch(43.1% 0.200 286.7);
Tailwind
colors: {
  custom: {
    50: '#8c69cc',
    500: '#502cb5',
    950: '#000000',
  },
}
SCSS
$custom: #502cb5;
$custom-light: #8c69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#502cb5",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 255.766,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43138,
    "c": 0.19971,
    "h": 286.7
  },
  "luminance": 0.06843
}

Semantic roles & 50–950 ramp

primary
#502CB5
secondary
#B2C875
accent
#E444BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #502CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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