#502196#502196

#502196 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.176 H 295.1°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#502196
RGBrgb(80, 33, 150)
HSLhsl(264, 64%, 36%)
HSVhsv(264, 78%, 59%)
CMYKcmyk(46.7%, 78%, 0%, 41.2%)
CIE-LABlab(26.72, 46.72, -55.49)
CIE-LCHlch(26.72, 72.54, 310.09°)
OKLaboklab(38.94% 0.0746 -0.1591)
OKLCHoklch(38.94% 0.176 295.1)
XYZxyz(9.3557, 4.9949, 29.3194)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502196 #679621
analogous
#212C96 #502196 #8A2196
triadic
#502196 #965021 #219650
tetradic
#502196 #96212C #679621 #21968A
square
#502196 #96212C #679621 #21968A
split-complementary
#502196 #968A21 #2C9621
monochromatic
#1A0B32 #351664 #502196 #6B2CC8 #8C57DA

Accessibility & contrast

On white

10.51
#502196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#502196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502196
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502196#FFFFFF#000000##FFFFFF
##5021961.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003D94
Tritanopia (blue-blind)
#3C415B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #502196;
/* rgb */ color: rgb(80, 33, 150);
/* oklch */ color: oklch(38.9% 0.176 295.1);
Tailwind
colors: {
  custom: {
    50: '#8862b6',
    500: '#502196',
    950: '#000000',
  },
}
SCSS
$custom: #502196;
$custom-light: #8862b6;
$custom-dark: #000000;
JSON
{
  "hex": "#502196",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 264.103,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38943,
    "c": 0.17568,
    "h": 295.1
  },
  "luminance": 0.04995
}

Semantic roles & 50–950 ramp

primary
#502196
secondary
#94BE55
accent
#E741A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #502196

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

Preview Lab → · Contrast checker → · Palette generator →

#502196 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva