#51175A#51175A

#51175A is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.0% C 0.124 H 322.0°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#51175A
RGBrgb(81, 23, 90)
HSLhsl(292, 59%, 22%)
HSVhsv(292, 74%, 35%)
CMYKcmyk(10%, 74.4%, 0%, 64.7%)
CIE-LABlab(20.44, 36.84, -27.34)
CIE-LCHlch(20.44, 45.88, 323.43°)
OKLaboklab(33.02% 0.0977 -0.0763)
OKLCHoklch(33.02% 0.124 322)
XYZxyz(5.5450, 3.1006, 9.9773)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51175A #205A17
analogous
#2F175A #51175A #5A1742
triadic
#51175A #5A5117 #175A51
tetradic
#51175A #5A2F17 #205A17 #17425A
square
#51175A #5A2F17 #205A17 #17425A
split-complementary
#51175A #425A17 #175A2F
monochromatic
#160618 #250B29 #51175A #7D238B #A930BB

Accessibility & contrast

On white

12.96
#51175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#51175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51175A
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51175A#FFFFFF#000000##FFFFFF
##51175A1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022D5C
Deuteranopia (green-blind)
#203358
Tritanopia (blue-blind)
#522336
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #51175a;
/* rgb */ color: rgb(81, 23, 90);
/* oklch */ color: oklch(33.0% 0.124 322.0);
Tailwind
colors: {
  custom: {
    50: '#845a89',
    500: '#51175a',
    950: '#000000',
  },
}
SCSS
$custom: #51175a;
$custom-light: #845a89;
$custom-dark: #000000;
JSON
{
  "hex": "#51175a",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 291.94,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33019,
    "c": 0.12395,
    "h": 322
  },
  "luminance": 0.031
}

Semantic roles & 50–950 ramp

primary
#51175A
secondary
#47913C
accent
#E2455A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #51175A

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

Preview Lab → · Contrast checker → · Palette generator →

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