#502AC2#502AC2

#502AC2 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.2% C 0.216 H 284.7°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#502AC2
RGBrgb(80, 42, 194)
HSLhsl(255, 64%, 46%)
HSVhsv(255, 78%, 76%)
CMYKcmyk(58.8%, 78.4%, 0%, 23.9%)
CIE-LABlab(32.38, 54.70, -72.61)
CIE-LCHlch(32.38, 90.91, 306.99°)
OKLaboklab(44.17% 0.055 -0.2092)
OKLCHoklch(44.17% 0.216 284.7)
XYZxyz(13.8709, 7.2556, 51.6980)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AC2 #9CC22A
analogous
#2A50C2 #502AC2 #9C2AC2
triadic
#502AC2 #C2502A #2AC250
tetradic
#502AC2 #C22A50 #9CC22A #2AC29C
square
#502AC2 #C22A50 #9CC22A #2AC29C
split-complementary
#502AC2 #C29C2A #50C22A
monochromatic
#27145D #3B1F90 #502AC2 #7250D9 #9B82E4

Accessibility & contrast

On white

8.57
#502AC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#502AC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AC2
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AC2#FFFFFF#000000##FFFFFF
##502AC21.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C6
Deuteranopia (green-blind)
#0047BF
Tritanopia (blue-blind)
#085776
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #502ac2;
/* rgb */ color: rgb(80, 42, 194);
/* oklch */ color: oklch(44.2% 0.216 284.7);
Tailwind
colors: {
  custom: {
    50: '#8f69d6',
    500: '#502ac2',
    950: '#000000',
  },
}
SCSS
$custom: #502ac2;
$custom-light: #8f69d6;
$custom-dark: #000000;
JSON
{
  "hex": "#502ac2",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 194
  },
  "hsl": {
    "h": 255,
    "s": 64.407,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44174,
    "c": 0.21635,
    "h": 284.7
  },
  "luminance": 0.07256
}

Semantic roles & 50–950 ramp

primary
#502AC2
secondary
#B8CD7B
accent
#E740BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #502AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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