#501862#501862

#501862 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.130 H 316.6°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#501862
RGBrgb(80, 24, 98)
HSLhsl(285, 61%, 24%)
HSVhsv(285, 76%, 38%)
CMYKcmyk(18.4%, 75.5%, 0%, 61.6%)
CIE-LABlab(20.98, 37.88, -31.78)
CIE-LCHlch(20.98, 49.44, 320.00°)
OKLaboklab(33.55% 0.0946 -0.0894)
OKLCHoklch(33.55% 0.13 316.6)
XYZxyz(5.8392, 3.2408, 11.8709)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501862 #2A6218
analogous
#2B1862 #501862 #62184F
triadic
#501862 #625018 #186250
tetradic
#501862 #622B18 #2A6218 #184F62
square
#501862 #622B18 #2A6218 #184F62
split-complementary
#501862 #4F6218 #18622B
monochromatic
#140619 #280C31 #501862 #782493 #A030C4

Accessibility & contrast

On white

12.74
#501862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#501862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501862
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501862#FFFFFF#000000##FFFFFF
##5018621.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #501862;
/* rgb */ color: rgb(80, 24, 98);
/* oklch */ color: oklch(33.5% 0.130 316.6);
Tailwind
colors: {
  custom: {
    50: '#845b8f',
    500: '#501862',
    950: '#000000',
  },
}
SCSS
$custom: #501862;
$custom-light: #845b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#501862",
  "rgb": {
    "r": 80,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 285.405,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33549,
    "c": 0.13014,
    "h": 316.6
  },
  "luminance": 0.03241
}

Semantic roles & 50–950 ramp

primary
#501862
secondary
#54983E
accent
#E4446B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #501862

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

Preview Lab → · Contrast checker → · Palette generator →

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