#502CA6#502CA6

#502CA6 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.182 H 289.6°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#502CA6
RGBrgb(80, 44, 166)
HSLhsl(258, 58%, 41%)
HSVhsv(258, 73%, 65%)
CMYKcmyk(51.8%, 73.5%, 0%, 34.9%)
CIE-LABlab(30.06, 45.80, -59.77)
CIE-LCHlch(30.06, 75.30, 307.46°)
OKLaboklab(41.74% 0.061 -0.1717)
OKLCHoklch(41.74% 0.182 289.6)
XYZxyz(11.0899, 6.2595, 36.6929)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CA6 #82A62C
analogous
#2C45A6 #502CA6 #8D2CA6
triadic
#502CA6 #A6502C #2CA650
tetradic
#502CA6 #A62C45 #82A62C #2CA68D
square
#502CA6 #A62C45 #82A62C #2CA68D
split-complementary
#502CA6 #A68D2C #45A62C
monochromatic
#211245 #391F76 #502CA6 #6B42CD #9173DA

Accessibility & contrast

On white

9.33
#502CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#502CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CA6
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CA6#FFFFFF#000000##FFFFFF
##502CA61.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#314D66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502ca6;
/* rgb */ color: rgb(80, 44, 166);
/* oklch */ color: oklch(41.7% 0.182 289.6);
Tailwind
colors: {
  custom: {
    50: '#8a69c1',
    500: '#502ca6',
    950: '#000000',
  },
}
SCSS
$custom: #502ca6;
$custom-light: #8a69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#502ca6",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 257.705,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41738,
    "c": 0.18221,
    "h": 289.6
  },
  "luminance": 0.0626
}

Semantic roles & 50–950 ramp

primary
#502CA6
secondary
#A8C16D
accent
#E146B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #502CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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