#501251#501251

#501251 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.122 H 327.3°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#501251
RGBrgb(80, 18, 81)
HSLhsl(299, 64%, 19%)
HSVhsv(299, 78%, 32%)
CMYKcmyk(1.2%, 77.8%, 0%, 68.2%)
CIE-LABlab(18.94, 36.87, -23.69)
CIE-LCHlch(18.94, 43.82, 327.28°)
OKLaboklab(31.72% 0.1023 -0.0657)
OKLCHoklch(31.72% 0.122 327.3)
XYZxyz(5.0097, 2.7325, 8.0466)
Luminance0.0273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#501251 #135112
analogous
#311251 #501251 #511233
triadic
#501251 #515012 #125150
tetradic
#501251 #513112 #135112 #123351
square
#501251 #513112 #135112 #123351
split-complementary
#501251 #335112 #125131
monochromatic
#190619 #1F071F #501251 #811D83 #B328B5

Accessibility & contrast

On white

13.58
#501251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#501251 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #501251
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##501251#FFFFFF#000000##FFFFFF
##5012511.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062953
Deuteranopia (green-blind)
#22314F
Tritanopia (blue-blind)
#531C30
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #501251;
/* rgb */ color: rgb(80, 18, 81);
/* oklch */ color: oklch(31.7% 0.122 327.3);
Tailwind
colors: {
  custom: {
    50: '#845782',
    500: '#501251',
    950: '#000000',
  },
}
SCSS
$custom: #501251;
$custom-light: #845782;
$custom-dark: #000000;
JSON
{
  "hex": "#501251",
  "rgb": {
    "r": 80,
    "g": 18,
    "b": 81
  },
  "hsl": {
    "h": 299.048,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31717,
    "c": 0.12158,
    "h": 327.3
  },
  "luminance": 0.02732
}

Semantic roles & 50–950 ramp

primary
#501251
secondary
#368A35
accent
#E74144
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #501251

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

Preview Lab → · Contrast checker → · Palette generator →

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