#501962#501962

#501962 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.7% C 0.129 H 316.5°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#501962
RGBrgb(80, 25, 98)
HSLhsl(285, 59%, 24%)
HSVhsv(285, 74%, 38%)
CMYKcmyk(18.4%, 74.5%, 0%, 61.6%)
CIE-LABlab(21.14, 37.43, -31.52)
CIE-LCHlch(21.14, 48.94, 319.90°)
OKLaboklab(33.66% 0.0935 -0.0886)
OKLCHoklch(33.66% 0.129 316.5)
XYZxyz(5.8602, 3.2828, 11.8779)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501962 #2B6219
analogous
#2B1962 #501962 #621950
triadic
#501962 #625019 #196250
tetradic
#501962 #622B19 #2B6219 #195062
square
#501962 #622B19 #2B6219 #195062
split-complementary
#501962 #506219 #19622B
monochromatic
#140618 #280D31 #501962 #782593 #A032C4

Accessibility & contrast

On white

12.68
#501962 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#501962 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501962
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501962#FFFFFF#000000##FFFFFF
##5019621.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#193460
Tritanopia (blue-blind)
#4F283B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #501962;
/* rgb */ color: rgb(80, 25, 98);
/* oklch */ color: oklch(33.7% 0.129 316.5);
Tailwind
colors: {
  custom: {
    50: '#845b8f',
    500: '#501962',
    950: '#000000',
  },
}
SCSS
$custom: #501962;
$custom-light: #845b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#501962",
  "rgb": {
    "r": 80,
    "g": 25,
    "b": 98
  },
  "hsl": {
    "h": 285.205,
    "s": 59.35,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33663,
    "c": 0.12878,
    "h": 316.5
  },
  "luminance": 0.03283
}

Semantic roles & 50–950 ramp

primary
#501962
secondary
#55983F
accent
#E3456C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #501962

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

Preview Lab → · Contrast checker → · Palette generator →

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