#502BC4#502BC4

#502BC4 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.5% C 0.218 H 284.3°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#502BC4
RGBrgb(80, 43, 196)
HSLhsl(255, 64%, 47%)
HSVhsv(255, 78%, 77%)
CMYKcmyk(59.2%, 78.1%, 0%, 23.1%)
CIE-LABlab(32.74, 54.81, -73.19)
CIE-LCHlch(32.74, 91.44, 306.82°)
OKLaboklab(44.48% 0.0538 -0.2109)
OKLCHoklch(44.48% 0.218 284.3)
XYZxyz(14.1329, 7.4178, 52.9009)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502BC4 #9FC42B
analogous
#2B52C4 #502BC4 #9D2BC4
triadic
#502BC4 #C4502B #2BC450
tetradic
#502BC4 #C42B52 #9FC42B #2BC49D
square
#502BC4 #C42B52 #9FC42B #2BC49D
split-complementary
#502BC4 #C49D2B #52C42B
monochromatic
#271560 #3C2092 #502BC4 #7353D9 #9C85E4

Accessibility & contrast

On white

8.45
#502BC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#502BC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502BC4
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502BC4#FFFFFF#000000##FFFFFF
##502BC41.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.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: #502bc4;
/* rgb */ color: rgb(80, 43, 196);
/* oklch */ color: oklch(44.5% 0.218 284.3);
Tailwind
colors: {
  custom: {
    50: '#8f6ad7',
    500: '#502bc4',
    950: '#000000',
  },
}
SCSS
$custom: #502bc4;
$custom-light: #8f6ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#502bc4",
  "rgb": {
    "r": 80,
    "g": 43,
    "b": 196
  },
  "hsl": {
    "h": 254.51,
    "s": 64.017,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44483,
    "c": 0.2177,
    "h": 284.3
  },
  "luminance": 0.07419
}

Semantic roles & 50–950 ramp

primary
#502BC4
secondary
#BACE7D
accent
#E741BF
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #502BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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