#502CA1#502CA1

#502CA1 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.176 H 290.6°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#502CA1
RGBrgb(80, 44, 161)
HSLhsl(258, 57%, 40%)
HSVhsv(258, 73%, 63%)
CMYKcmyk(50.3%, 72.7%, 0%, 36.9%)
CIE-LABlab(29.61, 44.37, -57.47)
CIE-LCHlch(29.61, 72.61, 307.67°)
OKLaboklab(41.29% 0.0622 -0.165)
OKLCHoklch(41.29% 0.176 290.6)
XYZxyz(10.6401, 6.0796, 34.3242)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CA1 #7DA12C
analogous
#2C42A1 #502CA1 #8B2CA1
triadic
#502CA1 #A1502C #2CA150
tetradic
#502CA1 #A12C42 #7DA12C #2CA18B
square
#502CA1 #A12C42 #7DA12C #2CA18B
split-complementary
#502CA1 #A18B2C #42A12C
monochromatic
#201241 #381F71 #502CA1 #6A40CB #9070D8

Accessibility & contrast

On white

9.48
#502CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#502CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CA1
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CA1#FFFFFF#000000##FFFFFF
##502CA11.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#354B64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502ca1;
/* rgb */ color: rgb(80, 44, 161);
/* oklch */ color: oklch(41.3% 0.176 290.6);
Tailwind
colors: {
  custom: {
    50: '#8968be',
    500: '#502ca1',
    950: '#000000',
  },
}
SCSS
$custom: #502ca1;
$custom-light: #8968be;
$custom-dark: #000000;
JSON
{
  "hex": "#502ca1",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 258.462,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41285,
    "c": 0.17627,
    "h": 290.6
  },
  "luminance": 0.0608
}

Semantic roles & 50–950 ramp

primary
#502CA1
secondary
#A5BF6A
accent
#E047B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #502CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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