#51175C#51175C

#51175C is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.126 H 320.8°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#51175C
RGBrgb(81, 23, 92)
HSLhsl(290, 60%, 23%)
HSVhsv(290, 75%, 36%)
CMYKcmyk(12%, 75%, 0%, 63.9%)
CIE-LABlab(20.58, 37.26, -28.45)
CIE-LCHlch(20.58, 46.88, 322.64°)
OKLaboklab(33.16% 0.0976 -0.0796)
OKLCHoklch(33.16% 0.126 320.8)
XYZxyz(5.6313, 3.1351, 10.4317)
Luminance0.0314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51175C #225C17
analogous
#2F175C #51175C #5C1744
triadic
#51175C #5C5117 #175C51
tetradic
#51175C #5C2F17 #225C17 #17445C
square
#51175C #5C2F17 #225C17 #17445C
split-complementary
#51175C #445C17 #175C2F
monochromatic
#160618 #260B2B #51175C #7C238D #A72FBE

Accessibility & contrast

On white

12.91
#51175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51175C
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51175C#FFFFFF#000000##FFFFFF
##51175C1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#1E345A
Tritanopia (blue-blind)
#522437
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51175c;
/* rgb */ color: rgb(81, 23, 92);
/* oklch */ color: oklch(33.2% 0.126 320.8);
Tailwind
colors: {
  custom: {
    50: '#845a8a',
    500: '#51175c',
    950: '#000000',
  },
}
SCSS
$custom: #51175c;
$custom-light: #845a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#51175c",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 290.435,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33158,
    "c": 0.12591,
    "h": 320.8
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#51175C
secondary
#4A933C
accent
#E3455E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51175C

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

Preview Lab → · Contrast checker → · Palette generator →

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