#502CA7#502CA7

#502CA7 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.183 H 289.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#502CA7
RGBrgb(80, 44, 167)
HSLhsl(258, 58%, 41%)
HSVhsv(258, 74%, 65%)
CMYKcmyk(52.1%, 73.7%, 0%, 34.5%)
CIE-LABlab(30.15, 46.08, -60.22)
CIE-LCHlch(30.15, 75.83, 307.42°)
OKLaboklab(41.83% 0.0608 -0.173)
OKLCHoklch(41.83% 0.183 289.4)
XYZxyz(11.1820, 6.2964, 37.1779)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CA7 #83A72C
analogous
#2C46A7 #502CA7 #8E2CA7
triadic
#502CA7 #A7502C #2CA750
tetradic
#502CA7 #A72C46 #83A72C #2CA78E
square
#502CA7 #A72C46 #83A72C #2CA78E
split-complementary
#502CA7 #A78E2C #46A72C
monochromatic
#221246 #391F77 #502CA7 #6B43CD #9173DA

Accessibility & contrast

On white

9.29
#502CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#502CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CA7
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CA7#FFFFFF#000000##FFFFFF
##502CA71.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#304D67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502ca7;
/* rgb */ color: rgb(80, 44, 167);
/* oklch */ color: oklch(41.8% 0.183 289.4);
Tailwind
colors: {
  custom: {
    50: '#8a69c2',
    500: '#502ca7',
    950: '#000000',
  },
}
SCSS
$custom: #502ca7;
$custom-light: #8a69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#502ca7",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 257.561,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41829,
    "c": 0.1834,
    "h": 289.4
  },
  "luminance": 0.06297
}

Semantic roles & 50–950 ramp

primary
#502CA7
secondary
#A9C26D
accent
#E246B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #502CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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