#502DC4#502DC4

#502DC4 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.7% C 0.216 H 284.1°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#502DC4
RGBrgb(80, 45, 196)
HSLhsl(254, 63%, 47%)
HSVhsv(254, 77%, 77%)
CMYKcmyk(59.2%, 77%, 0%, 23.1%)
CIE-LABlab(33.06, 53.87, -72.66)
CIE-LCHlch(33.06, 90.45, 306.56°)
OKLaboklab(44.71% 0.0526 -0.2094)
OKLCHoklch(44.71% 0.216 284.1)
XYZxyz(14.2074, 7.5668, 52.9257)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502DC4 #A1C42D
analogous
#2D56C4 #502DC4 #9B2DC4
triadic
#502DC4 #C4502D #2DC450
tetradic
#502DC4 #C42D56 #A1C42D #2DC49B
square
#502DC4 #C42D56 #A1C42D #2DC49B
split-complementary
#502DC4 #C49B2D #56C42D
monochromatic
#271660 #3C2292 #502DC4 #7456D8 #9D88E4

Accessibility & contrast

On white

8.35
#502DC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#502DC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502DC4
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502DC4#FFFFFF#000000##FFFFFF
##502DC41.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C8
Deuteranopia (green-blind)
#0049C1
Tritanopia (blue-blind)
#005978
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #502dc4;
/* rgb */ color: rgb(80, 45, 196);
/* oklch */ color: oklch(44.7% 0.216 284.1);
Tailwind
colors: {
  custom: {
    50: '#8f6bd7',
    500: '#502dc4',
    950: '#000000',
  },
}
SCSS
$custom: #502dc4;
$custom-light: #8f6bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#502dc4",
  "rgb": {
    "r": 80,
    "g": 45,
    "b": 196
  },
  "hsl": {
    "h": 253.907,
    "s": 62.656,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44709,
    "c": 0.2159,
    "h": 284.1
  },
  "luminance": 0.07568
}

Semantic roles & 50–950 ramp

primary
#502DC4
secondary
#BBCD80
accent
#E642C0
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #502DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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