#502CA3#502CA3

#502CA3 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.179 H 290.2°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#502CA3
RGBrgb(80, 44, 163)
HSLhsl(258, 57%, 41%)
HSVhsv(258, 73%, 64%)
CMYKcmyk(50.9%, 73%, 0%, 36.1%)
CIE-LABlab(29.79, 44.94, -58.40)
CIE-LCHlch(29.79, 73.69, 307.58°)
OKLaboklab(41.47% 0.0617 -0.1677)
OKLCHoklch(41.47% 0.179 290.2)
XYZxyz(10.8179, 6.1507, 35.2604)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CA3 #7FA32C
analogous
#2C44A3 #502CA3 #8B2CA3
triadic
#502CA3 #A3502C #2CA350
tetradic
#502CA3 #A32C44 #7FA32C #2CA38B
square
#502CA3 #A32C44 #7FA32C #2CA38B
split-complementary
#502CA3 #A38B2C #44A32C
monochromatic
#211243 #381F73 #502CA3 #6B41CC #9071D9

Accessibility & contrast

On white

9.42
#502CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#502CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CA3
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CA3#FFFFFF#000000##FFFFFF
##502CA31.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A6
Deuteranopia (green-blind)
#0043A1
Tritanopia (blue-blind)
#334B65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502ca3;
/* rgb */ color: rgb(80, 44, 163);
/* oklch */ color: oklch(41.5% 0.179 290.2);
Tailwind
colors: {
  custom: {
    50: '#8969bf',
    500: '#502ca3',
    950: '#000000',
  },
}
SCSS
$custom: #502ca3;
$custom-light: #8969bf;
$custom-dark: #000000;
JSON
{
  "hex": "#502ca3",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 258.151,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41465,
    "c": 0.17866,
    "h": 290.2
  },
  "luminance": 0.06151
}

Semantic roles & 50–950 ramp

primary
#502CA3
secondary
#A6C06B
accent
#E147B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #502CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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