#51175E#51175E

#51175E is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.3% C 0.128 H 319.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#51175E
RGBrgb(81, 23, 94)
HSLhsl(289, 61%, 23%)
HSVhsv(289, 76%, 37%)
CMYKcmyk(13.8%, 75.5%, 0%, 63.1%)
CIE-LABlab(20.71, 37.69, -29.56)
CIE-LCHlch(20.71, 47.90, 321.89°)
OKLaboklab(33.3% 0.0975 -0.0828)
OKLCHoklch(33.3% 0.128 319.6)
XYZxyz(5.7199, 3.1706, 10.8982)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51175E #245E17
analogous
#2D175E #51175E #5E1747
triadic
#51175E #5E5117 #175E51
tetradic
#51175E #5E2D17 #245E17 #17475E
square
#51175E #5E2D17 #245E17 #17475E
split-complementary
#51175E #475E17 #175E2D
monochromatic
#150619 #270B2D #51175E #7B238F #A62FC0

Accessibility & contrast

On white

12.85
#51175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#51175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51175E
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51175E#FFFFFF#000000##FFFFFF
##51175E1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#1D345C
Tritanopia (blue-blind)
#512439
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51175e;
/* rgb */ color: rgb(81, 23, 94);
/* oklch */ color: oklch(33.3% 0.128 319.6);
Tailwind
colors: {
  custom: {
    50: '#855a8c',
    500: '#51175e',
    950: '#000000',
  },
}
SCSS
$custom: #51175e;
$custom-light: #855a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#51175e",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 289.014,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33301,
    "c": 0.12789,
    "h": 319.6
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#51175E
secondary
#4C953C
accent
#E44461
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51175E

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

Preview Lab → · Contrast checker → · Palette generator →

#51175E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva