#502CA2#502CA2

#502CA2 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.177 H 290.4°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#502CA2
RGBrgb(80, 44, 162)
HSLhsl(258, 57%, 40%)
HSVhsv(258, 73%, 64%)
CMYKcmyk(50.6%, 72.8%, 0%, 36.5%)
CIE-LABlab(29.70, 44.66, -57.94)
CIE-LCHlch(29.70, 73.15, 307.62°)
OKLaboklab(41.38% 0.0619 -0.1663)
OKLCHoklch(41.38% 0.177 290.4)
XYZxyz(10.7287, 6.1150, 34.7904)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502CA2 #7EA22C
analogous
#2C43A2 #502CA2 #8B2CA2
triadic
#502CA2 #A2502C #2CA250
tetradic
#502CA2 #A22C43 #7EA22C #2CA28B
square
#502CA2 #A22C43 #7EA22C #2CA28B
split-complementary
#502CA2 #A28B2C #43A22C
monochromatic
#201242 #381F72 #502CA2 #6A40CB #9070D8

Accessibility & contrast

On white

9.45
#502CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#502CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502CA2
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502CA2#FFFFFF#000000##FFFFFF
##502CA21.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#344B64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #502ca2;
/* rgb */ color: rgb(80, 44, 162);
/* oklch */ color: oklch(41.4% 0.177 290.4);
Tailwind
colors: {
  custom: {
    50: '#8969bf',
    500: '#502ca2',
    950: '#000000',
  },
}
SCSS
$custom: #502ca2;
$custom-light: #8969bf;
$custom-dark: #000000;
JSON
{
  "hex": "#502ca2",
  "rgb": {
    "r": 80,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 258.305,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41375,
    "c": 0.17747,
    "h": 290.4
  },
  "luminance": 0.06115
}

Semantic roles & 50–950 ramp

primary
#502CA2
secondary
#A5BF6A
accent
#E147B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #502CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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