#502CB1#502CB1

#502CB1 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.195 H 287.4°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#502CB1
RGBrgb(80, 44, 177)
HSLhsl(256, 60%, 43%)
HSVhsv(256, 75%, 69%)
CMYKcmyk(54.8%, 75.1%, 0%, 30.6%)
CIE-LABlab(31.07, 48.94, -64.71)
CIE-LCHlch(31.07, 81.13, 307.10°)
OKLaboklab(42.76% 0.0584 -0.1862)
OKLCHoklch(42.76% 0.195 287.4)
XYZxyz(12.1424, 6.6805, 42.2361)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CB1 #8DB12C
analogous
#2C4AB1 #502CB1 #922CB1
triadic
#502CB1 #B1502C #2CB150
tetradic
#502CB1 #B12C4A #8DB12C #2CB192
square
#502CB1 #B12C4A #8DB12C #2CB192
split-complementary
#502CB1 #B1922C #4AB12C
monochromatic
#24144F #3A2080 #502CB1 #6E49D2 #957ADE

Accessibility & contrast

On white

8.99
#502CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#502CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CB1
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CB1#FFFFFF#000000##FFFFFF
##502CB11.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#27516C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #502cb1;
/* rgb */ color: rgb(80, 44, 177);
/* oklch */ color: oklch(42.8% 0.195 287.4);
Tailwind
colors: {
  custom: {
    50: '#8c69c9',
    500: '#502cb1',
    950: '#000000',
  },
}
SCSS
$custom: #502cb1;
$custom-light: #8c69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#502cb1",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 256.241,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42759,
    "c": 0.19509,
    "h": 287.4
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#502CB1
secondary
#AFC673
accent
#E344B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #502CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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