#502170#502170

#502170 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.133 H 308.4°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#502170
RGBrgb(80, 33, 112)
HSLhsl(276, 54%, 28%)
HSVhsv(276, 71%, 44%)
CMYKcmyk(28.6%, 70.5%, 0%, 56.1%)
CIE-LABlab(23.55, 36.86, -36.76)
CIE-LCHlch(23.55, 52.06, 315.07°)
OKLaboklab(35.71% 0.0825 -0.104)
OKLCHoklch(35.71% 0.133 308.4)
XYZxyz(6.7762, 3.9631, 15.7341)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502170 #417021
analogous
#282170 #502170 #702168
triadic
#502170 #705021 #217050
tetradic
#502170 #702821 #417021 #216870
square
#502170 #702821 #417021 #216870
split-complementary
#502170 #687021 #217028
monochromatic
#110718 #2E1341 #502170 #722F9F #9244C8

Accessibility & contrast

On white

11.71
#502170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#502170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502170
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502170#FFFFFF#000000##FFFFFF
##5021701.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#11396E
Tritanopia (blue-blind)
#4B3245
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #502170;
/* rgb */ color: rgb(80, 33, 112);
/* oklch */ color: oklch(35.7% 0.133 308.4);
Tailwind
colors: {
  custom: {
    50: '#84609a',
    500: '#502170',
    950: '#000000',
  },
}
SCSS
$custom: #502170;
$custom-light: #84609a;
$custom-dark: #000000;
JSON
{
  "hex": "#502170",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 275.696,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3571,
    "c": 0.13275,
    "h": 308.4
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#502170
secondary
#6EA449
accent
#DE4A86
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #502170

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

Preview Lab → · Contrast checker → · Palette generator →

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