#501255#501255

#501255 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.125 H 324.7°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#501255
RGBrgb(80, 18, 85)
HSLhsl(296, 65%, 20%)
HSVhsv(296, 79%, 33%)
CMYKcmyk(5.9%, 78.8%, 0%, 66.7%)
CIE-LABlab(19.20, 37.65, -25.98)
CIE-LCHlch(19.20, 45.74, 325.40°)
OKLaboklab(31.99% 0.1022 -0.0723)
OKLCHoklch(31.99% 0.125 324.7)
XYZxyz(5.1641, 2.7943, 8.8599)
Luminance0.0279 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501255 #175512
analogous
#2E1255 #501255 #551239
triadic
#501255 #555012 #125550
tetradic
#501255 #552E12 #175512 #123955
square
#501255 #552E12 #175512 #123955
split-complementary
#501255 #395512 #12552E
monochromatic
#180519 #200722 #501255 #801D88 #AF27BA

Accessibility & contrast

On white

13.47
#501255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#501255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501255
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501255#FFFFFF#000000##FFFFFF
##5012551.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A57
Deuteranopia (green-blind)
#1F3153
Tritanopia (blue-blind)
#521E32
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #501255;
/* rgb */ color: rgb(80, 18, 85);
/* oklch */ color: oklch(32.0% 0.125 324.7);
Tailwind
colors: {
  custom: {
    50: '#845785',
    500: '#501255',
    950: '#000000',
  },
}
SCSS
$custom: #501255;
$custom-light: #845785;
$custom-dark: #000000;
JSON
{
  "hex": "#501255",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 295.522,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31988,
    "c": 0.12523,
    "h": 324.7
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#501255
secondary
#3C8E35
accent
#E8404C
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #501255

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

Preview Lab → · Contrast checker → · Palette generator →

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