#51175B#51175B

#51175B is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.125 H 321.4°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#51175B
RGBrgb(81, 23, 91)
HSLhsl(291, 60%, 22%)
HSVhsv(291, 75%, 36%)
CMYKcmyk(11%, 74.7%, 0%, 64.3%)
CIE-LABlab(20.51, 37.05, -27.89)
CIE-LCHlch(20.51, 46.38, 323.02°)
OKLaboklab(33.09% 0.0976 -0.0779)
OKLCHoklch(33.09% 0.125 321.4)
XYZxyz(5.5879, 3.1178, 10.2030)
Luminance0.0312 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51175B #215B17
analogous
#2F175B #51175B #5B1743
triadic
#51175B #5B5117 #175B51
tetradic
#51175B #5B2F17 #215B17 #17435B
square
#51175B #5B2F17 #215B17 #17435B
split-complementary
#51175B #435B17 #175B2F
monochromatic
#160618 #260B2A #51175B #7C238C #A830BD

Accessibility & contrast

On white

12.94
#51175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51175B
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51175B#FFFFFF#000000##FFFFFF
##51175B1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#1F3459
Tritanopia (blue-blind)
#522337
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #51175b;
/* rgb */ color: rgb(81, 23, 91);
/* oklch */ color: oklch(33.1% 0.125 321.4);
Tailwind
colors: {
  custom: {
    50: '#845a8a',
    500: '#51175b',
    950: '#000000',
  },
}
SCSS
$custom: #51175b;
$custom-light: #845a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#51175b",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 291.176,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33088,
    "c": 0.12493,
    "h": 321.4
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#51175B
secondary
#49923C
accent
#E3455C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #51175B

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

Preview Lab → · Contrast checker → · Palette generator →

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