#502AC4#502AC4

#502AC4 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.4% C 0.219 H 284.4°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#502AC4
RGBrgb(80, 42, 196)
HSLhsl(255, 65%, 47%)
HSVhsv(255, 79%, 77%)
CMYKcmyk(59.2%, 78.6%, 0%, 23.1%)
CIE-LABlab(32.58, 55.26, -73.45)
CIE-LCHlch(32.58, 91.92, 306.96°)
OKLaboklab(44.37% 0.0544 -0.2117)
OKLCHoklch(44.37% 0.219 284.4)
XYZxyz(14.0970, 7.3460, 52.8889)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502AC4 #9EC42A
analogous
#2A51C4 #502AC4 #9D2AC4
triadic
#502AC4 #C4502A #2AC450
tetradic
#502AC4 #C42A51 #9EC42A #2AC49D
square
#502AC4 #C42A51 #9EC42A #2AC49D
split-complementary
#502AC4 #C49D2A #51C42A
monochromatic
#27145F #3B1F92 #502AC4 #7351DA #9C84E5

Accessibility & contrast

On white

8.50
#502AC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#502AC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502AC4
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502AC4#FFFFFF#000000##FFFFFF
##502AC41.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C8
Deuteranopia (green-blind)
#0048C1
Tritanopia (blue-blind)
#015877
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #502ac4;
/* rgb */ color: rgb(80, 42, 196);
/* oklch */ color: oklch(44.4% 0.219 284.4);
Tailwind
colors: {
  custom: {
    50: '#8f69d7',
    500: '#502ac4',
    950: '#000000',
  },
}
SCSS
$custom: #502ac4;
$custom-light: #8f69d7;
$custom-dark: #000000;
JSON
{
  "hex": "#502ac4",
  "rgb": {
    "r": 80,
    "g": 42,
    "b": 196
  },
  "hsl": {
    "h": 254.805,
    "s": 64.706,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44373,
    "c": 0.21858,
    "h": 284.4
  },
  "luminance": 0.07347
}

Semantic roles & 50–950 ramp

primary
#502AC4
secondary
#BACE7C
accent
#E840BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #502AC4

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

Preview Lab → · Contrast checker → · Palette generator →

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