#502197#502197

#502197 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.177 H 294.8°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#502197
RGBrgb(80, 33, 151)
HSLhsl(264, 64%, 36%)
HSVhsv(264, 78%, 59%)
CMYKcmyk(47%, 78.1%, 0%, 40.8%)
CIE-LABlab(26.81, 46.99, -55.96)
CIE-LCHlch(26.81, 73.07, 310.02°)
OKLaboklab(39.04% 0.0743 -0.1604)
OKLCHoklch(39.04% 0.177 294.8)
XYZxyz(9.4365, 5.0273, 29.7453)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502197 #689721
analogous
#212D97 #502197 #8B2197
triadic
#502197 #975021 #219750
tetradic
#502197 #97212D #689721 #21978B
square
#502197 #97212D #689721 #21978B
split-complementary
#502197 #978B21 #2D9721
monochromatic
#1B0B33 #351665 #502197 #6B2CC9 #8C58DA

Accessibility & contrast

On white

10.47
#502197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #502197
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502197#FFFFFF#000000##FFFFFF
##5021971.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#3B415B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #502197;
/* rgb */ color: rgb(80, 33, 151);
/* oklch */ color: oklch(39.0% 0.177 294.8);
Tailwind
colors: {
  custom: {
    50: '#8962b7',
    500: '#502197',
    950: '#000000',
  },
}
SCSS
$custom: #502197;
$custom-light: #8962b7;
$custom-dark: #000000;
JSON
{
  "hex": "#502197",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 263.898,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39036,
    "c": 0.1768,
    "h": 294.8
  },
  "luminance": 0.05028
}

Semantic roles & 50–950 ramp

primary
#502197
secondary
#95BE55
accent
#E741A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #502197

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

Preview Lab → · Contrast checker → · Palette generator →

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