#502CA5#502CA5

#502CA5 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.181 H 289.8°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#502CA5
RGBrgb(80, 44, 165)
HSLhsl(258, 58%, 41%)
HSVhsv(258, 73%, 65%)
CMYKcmyk(51.5%, 73.3%, 0%, 35.3%)
CIE-LABlab(29.97, 45.51, -59.31)
CIE-LCHlch(29.97, 74.76, 307.50°)
OKLaboklab(41.65% 0.0613 -0.1703)
OKLCHoklch(41.65% 0.181 289.8)
XYZxyz(10.9985, 6.2230, 36.2116)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CA5 #81A52C
analogous
#2C44A5 #502CA5 #8C2CA5
triadic
#502CA5 #A5502C #2CA550
tetradic
#502CA5 #A52C44 #81A52C #2CA58C
square
#502CA5 #A52C44 #81A52C #2CA58C
split-complementary
#502CA5 #A58C2C #44A52C
monochromatic
#211244 #391F75 #502CA5 #6B42CD #9172D9

Accessibility & contrast

On white

9.36
#502CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#502CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CA5
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CA5#FFFFFF#000000##FFFFFF
##502CA51.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#324C66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #502ca5;
/* rgb */ color: rgb(80, 44, 165);
/* oklch */ color: oklch(41.6% 0.181 289.8);
Tailwind
colors: {
  custom: {
    50: '#8a69c1',
    500: '#502ca5',
    950: '#000000',
  },
}
SCSS
$custom: #502ca5;
$custom-light: #8a69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#502ca5",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 257.851,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41647,
    "c": 0.18102,
    "h": 289.8
  },
  "luminance": 0.06223
}

Semantic roles & 50–950 ramp

primary
#502CA5
secondary
#A8C16C
accent
#E147B3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #502CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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