#502172#502172

#502172 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.135 H 307.5°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#502172
RGBrgb(80, 33, 114)
HSLhsl(275, 55%, 29%)
HSVhsv(275, 71%, 45%)
CMYKcmyk(29.8%, 71.1%, 0%, 55.3%)
CIE-LABlab(23.70, 37.35, -37.81)
CIE-LCHlch(23.70, 53.15, 314.65°)
OKLaboklab(35.86% 0.0822 -0.1071)
OKLCHoklch(35.86% 0.135 307.5)
XYZxyz(6.8887, 4.0082, 16.3271)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502172 #437221
analogous
#282172 #502172 #72216C
triadic
#502172 #725021 #217250
tetradic
#502172 #722821 #437221 #216C72
square
#502172 #722821 #437221 #216C72
split-complementary
#502172 #6C7221 #217228
monochromatic
#110718 #2F1343 #502172 #712FA1 #9144C9

Accessibility & contrast

On white

11.66
#502172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#502172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502172
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502172#FFFFFF#000000##FFFFFF
##5021721.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#0D3970
Tritanopia (blue-blind)
#4B3346
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #502172;
/* rgb */ color: rgb(80, 33, 114);
/* oklch */ color: oklch(35.9% 0.135 307.5);
Tailwind
colors: {
  custom: {
    50: '#84609b',
    500: '#502172',
    950: '#000000',
  },
}
SCSS
$custom: #502172;
$custom-light: #84609b;
$custom-dark: #000000;
JSON
{
  "hex": "#502172",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 274.815,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35864,
    "c": 0.13503,
    "h": 307.5
  },
  "luminance": 0.04008
}

Semantic roles & 50–950 ramp

primary
#502172
secondary
#70A549
accent
#DE4988
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #502172

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

Preview Lab → · Contrast checker → · Palette generator →

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