#501982#501982

#501982 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.162 H 302.5°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#501982
RGBrgb(80, 25, 130)
HSLhsl(271, 68%, 30%)
HSVhsv(271, 81%, 51%)
CMYKcmyk(38.5%, 80.8%, 0%, 49%)
CIE-LABlab(23.71, 45.03, -47.97)
CIE-LCHlch(23.71, 65.79, 313.19°)
OKLaboklab(36.28% 0.0871 -0.1369)
OKLCHoklch(36.28% 0.162 302.5)
XYZxyz(7.6842, 4.0124, 21.4844)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501982 #4B8219
analogous
#1C1982 #501982 #82197F
triadic
#501982 #825019 #198250
tetradic
#501982 #821C19 #4B8219 #197F82
square
#501982 #821C19 #4B8219 #197F82
split-complementary
#501982 #7F8219 #19821C
monochromatic
#11051B #300F4F #501982 #7023B5 #8E3CD9

Accessibility & contrast

On white

11.65
#501982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #501982
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501982#FFFFFF#000000##FFFFFF
##5019821.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#45354D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #501982;
/* rgb */ color: rgb(80, 25, 130);
/* oklch */ color: oklch(36.3% 0.162 302.5);
Tailwind
colors: {
  custom: {
    50: '#875da7',
    500: '#501982',
    950: '#000000',
  },
}
SCSS
$custom: #501982;
$custom-light: #875da7;
$custom-dark: #000000;
JSON
{
  "hex": "#501982",
  "rgb": {
    "r": 80,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 271.429,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36284,
    "c": 0.16228,
    "h": 302.5
  },
  "luminance": 0.04012
}

Semantic roles & 50–950 ramp

primary
#501982
secondary
#79B641
accent
#EB3D90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #501982

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

Preview Lab → · Contrast checker → · Palette generator →

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