#502CC2#502CC2

#502CC2 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.4% C 0.215 H 284.5°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#502CC2
RGBrgb(80, 44, 194)
HSLhsl(254, 63%, 47%)
HSVhsv(254, 77%, 76%)
CMYKcmyk(58.8%, 77.3%, 0%, 23.9%)
CIE-LABlab(32.70, 53.78, -72.08)
CIE-LCHlch(32.70, 89.93, 306.73°)
OKLaboklab(44.4% 0.0538 -0.2077)
OKLCHoklch(44.4% 0.215 284.5)
XYZxyz(13.9436, 7.4010, 51.7223)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CC2 #9EC22C
analogous
#2C53C2 #502CC2 #9B2CC2
triadic
#502CC2 #C2502C #2CC250
tetradic
#502CC2 #C22C53 #9EC22C #2CC29B
square
#502CC2 #C22C53 #9EC22C #2CC29B
split-complementary
#502CC2 #C29B2C #53C22C
monochromatic
#27155E #3B2190 #502CC2 #7353D8 #9C85E3

Accessibility & contrast

On white

8.47
#502CC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#502CC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CC2
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CC2#FFFFFF#000000##FFFFFF
##502CC21.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C6
Deuteranopia (green-blind)
#0048BF
Tritanopia (blue-blind)
#085876
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #502cc2;
/* rgb */ color: rgb(80, 44, 194);
/* oklch */ color: oklch(44.4% 0.215 284.5);
Tailwind
colors: {
  custom: {
    50: '#8e6ad6',
    500: '#502cc2',
    950: '#000000',
  },
}
SCSS
$custom: #502cc2;
$custom-light: #8e6ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#502cc2",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 194
  },
  "hsl": {
    "h": 254.4,
    "s": 63.025,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44398,
    "c": 0.21455,
    "h": 284.5
  },
  "luminance": 0.07402
}

Semantic roles & 50–950 ramp

primary
#502CC2
secondary
#BACD7D
accent
#E642BF
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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