#502198#502198

#502198 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.178 H 294.6°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#502198
RGBrgb(80, 33, 152)
HSLhsl(264, 64%, 36%)
HSVhsv(264, 78%, 60%)
CMYKcmyk(47.4%, 78.3%, 0%, 40.4%)
CIE-LABlab(26.90, 47.25, -56.42)
CIE-LCHlch(26.90, 73.60, 309.95°)
OKLaboklab(39.13% 0.074 -0.1618)
OKLCHoklch(39.13% 0.178 294.6)
XYZxyz(9.5181, 5.0599, 30.1748)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502198 #699821
analogous
#212E98 #502198 #8C2198
triadic
#502198 #985021 #219850
tetradic
#502198 #98212E #699821 #21988C
square
#502198 #98212E #699821 #21988C
split-complementary
#502198 #988C21 #2E9821
monochromatic
#1B0B33 #361666 #502198 #6A2CCA #8C59DB

Accessibility & contrast

On white

10.44
#502198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#502198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502198
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502198#FFFFFF#000000##FFFFFF
##5021981.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#3B425C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #502198;
/* rgb */ color: rgb(80, 33, 152);
/* oklch */ color: oklch(39.1% 0.178 294.6);
Tailwind
colors: {
  custom: {
    50: '#8962b7',
    500: '#502198',
    950: '#000000',
  },
}
SCSS
$custom: #502198;
$custom-light: #8962b7;
$custom-dark: #000000;
JSON
{
  "hex": "#502198",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 263.697,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39129,
    "c": 0.17791,
    "h": 294.6
  },
  "luminance": 0.0506
}

Semantic roles & 50–950 ramp

primary
#502198
secondary
#95BF56
accent
#E740A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #502198

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

Preview Lab → · Contrast checker → · Palette generator →

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