#502CA4#502CA4

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

Color values

HEX#502CA4
RGBrgb(80, 44, 164)
HSLhsl(258, 58%, 41%)
HSVhsv(258, 73%, 64%)
CMYKcmyk(51.2%, 73.2%, 0%, 35.7%)
CIE-LABlab(29.88, 45.23, -58.85)
CIE-LCHlch(29.88, 74.22, 307.54°)
OKLaboklab(41.56% 0.0615 -0.169)
OKLCHoklch(41.56% 0.18 290)
XYZxyz(10.9079, 6.1867, 35.7342)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CA4 #80A42C
analogous
#2C44A4 #502CA4 #8C2CA4
triadic
#502CA4 #A4502C #2CA450
tetradic
#502CA4 #A42C44 #80A42C #2CA48C
square
#502CA4 #A42C44 #80A42C #2CA48C
split-complementary
#502CA4 #A48C2C #44A42C
monochromatic
#211243 #381F74 #502CA4 #6B41CC #9071D9

Accessibility & contrast

On white

9.39
#502CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502CA4
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CA4#FFFFFF#000000##FFFFFF
##502CA41.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#324C65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502ca4;
/* rgb */ color: rgb(80, 44, 164);
/* oklch */ color: oklch(41.6% 0.180 290.0);
Tailwind
colors: {
  custom: {
    50: '#8a69c0',
    500: '#502ca4',
    950: '#000000',
  },
}
SCSS
$custom: #502ca4;
$custom-light: #8a69c0;
$custom-dark: #000000;
JSON
{
  "hex": "#502ca4",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 258,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41556,
    "c": 0.17984,
    "h": 290
  },
  "luminance": 0.06187
}

Semantic roles & 50–950 ramp

primary
#502CA4
secondary
#A7C06B
accent
#E147B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #502CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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