#51175D#51175D

#51175D is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.2% C 0.127 H 320.2°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#51175D
RGBrgb(81, 23, 93)
HSLhsl(290, 60%, 23%)
HSVhsv(290, 75%, 36%)
CMYKcmyk(12.9%, 75.3%, 0%, 63.5%)
CIE-LABlab(20.65, 37.47, -29.01)
CIE-LCHlch(20.65, 47.39, 322.26°)
OKLaboklab(33.23% 0.0975 -0.0812)
OKLCHoklch(33.23% 0.127 320.2)
XYZxyz(5.6753, 3.1527, 10.6634)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51175D #235D17
analogous
#2E175D #51175D #5D1746
triadic
#51175D #5D5117 #175D51
tetradic
#51175D #5D2E17 #235D17 #17465D
square
#51175D #5D2E17 #235D17 #17465D
split-complementary
#51175D #465D17 #175D2E
monochromatic
#150619 #260B2C #51175D #7C238E #A62FBF

Accessibility & contrast

On white

12.88
#51175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51175D
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51175D#FFFFFF#000000##FFFFFF
##51175D1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5F
Deuteranopia (green-blind)
#1E345B
Tritanopia (blue-blind)
#512438
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51175d;
/* rgb */ color: rgb(81, 23, 93);
/* oklch */ color: oklch(33.2% 0.127 320.2);
Tailwind
colors: {
  custom: {
    50: '#855a8b',
    500: '#51175d',
    950: '#000000',
  },
}
SCSS
$custom: #51175d;
$custom-light: #855a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#51175d",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 289.714,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33229,
    "c": 0.12691,
    "h": 320.2
  },
  "luminance": 0.03152
}

Semantic roles & 50–950 ramp

primary
#51175D
secondary
#4B943C
accent
#E34460
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51175D

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

Preview Lab → · Contrast checker → · Palette generator →

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