#501257#501257

#501257 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.127 H 323.5°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#501257
RGBrgb(80, 18, 87)
HSLhsl(294, 66%, 21%)
HSVhsv(294, 79%, 34%)
CMYKcmyk(8%, 79.3%, 0%, 65.9%)
CIE-LABlab(19.34, 38.05, -27.11)
CIE-LCHlch(19.34, 46.72, 324.53°)
OKLaboklab(32.13% 0.1021 -0.0756)
OKLCHoklch(32.13% 0.127 323.5)
XYZxyz(5.2447, 2.8265, 9.2843)
Luminance0.0283 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501257 #195712
analogous
#2D1257 #501257 #57123B
triadic
#501257 #575012 #125750
tetradic
#501257 #572D12 #195712 #123B57
square
#501257 #572D12 #195712 #123B57
split-complementary
#501257 #3B5712 #12572D
monochromatic
#170519 #210824 #501257 #7F1C8A #AD27BC

Accessibility & contrast

On white

13.42
#501257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#501257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501257
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501257#FFFFFF#000000##FFFFFF
##5012571.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#1E3155
Tritanopia (blue-blind)
#511F33
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #501257;
/* rgb */ color: rgb(80, 18, 87);
/* oklch */ color: oklch(32.1% 0.127 323.5);
Tailwind
colors: {
  custom: {
    50: '#845787',
    500: '#501257',
    950: '#000000',
  },
}
SCSS
$custom: #501257;
$custom-light: #845787;
$custom-dark: #000000;
JSON
{
  "hex": "#501257",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 293.913,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32127,
    "c": 0.12708,
    "h": 323.5
  },
  "luminance": 0.02826
}

Semantic roles & 50–950 ramp

primary
#501257
secondary
#3E9035
accent
#E93F50
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #501257

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

Preview Lab → · Contrast checker → · Palette generator →

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