#502CC1#502CC1

#502CC1 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.3% C 0.213 H 284.7°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#502CC1
RGBrgb(80, 44, 193)
HSLhsl(254, 63%, 46%)
HSVhsv(254, 77%, 76%)
CMYKcmyk(58.5%, 77.2%, 0%, 24.3%)
CIE-LABlab(32.60, 53.49, -71.66)
CIE-LCHlch(32.60, 89.42, 306.74°)
OKLaboklab(44.3% 0.054 -0.2065)
OKLCHoklch(44.3% 0.213 284.7)
XYZxyz(13.8316, 7.3562, 51.1328)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CC1 #9DC12C
analogous
#2C52C1 #502CC1 #9B2CC1
triadic
#502CC1 #C1502C #2CC150
tetradic
#502CC1 #C12C52 #9DC12C #2CC19B
square
#502CC1 #C12C52 #9DC12C #2CC19B
split-complementary
#502CC1 #C19B2C #52C12C
monochromatic
#27155D #3B218F #502CC1 #7353D8 #9B84E3

Accessibility & contrast

On white

8.50
#502CC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#502CC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CC1
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CC1#FFFFFF#000000##FFFFFF
##502CC11.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C5
Deuteranopia (green-blind)
#0048BE
Tritanopia (blue-blind)
#0B5776
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #502cc1;
/* rgb */ color: rgb(80, 44, 193);
/* oklch */ color: oklch(44.3% 0.213 284.7);
Tailwind
colors: {
  custom: {
    50: '#8e6ad5',
    500: '#502cc1',
    950: '#000000',
  },
}
SCSS
$custom: #502cc1;
$custom-light: #8e6ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#502cc1",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 193
  },
  "hsl": {
    "h": 254.497,
    "s": 62.869,
    "l": 46.471
  },
  "oklch": {
    "l": 0.443,
    "c": 0.21342,
    "h": 284.7
  },
  "luminance": 0.07357
}

Semantic roles & 50–950 ramp

primary
#502CC1
secondary
#B9CC7D
accent
#E642BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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