#51175F#51175F

#51175F is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.129 H 319.1°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#51175F
RGBrgb(81, 23, 95)
HSLhsl(288, 61%, 23%)
HSVhsv(288, 76%, 37%)
CMYKcmyk(14.7%, 75.8%, 0%, 62.7%)
CIE-LABlab(20.78, 37.90, -30.11)
CIE-LCHlch(20.78, 48.41, 321.53°)
OKLaboklab(33.37% 0.0974 -0.0844)
OKLCHoklch(33.37% 0.129 319.1)
XYZxyz(5.7650, 3.1886, 11.1361)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51175F #255F17
analogous
#2D175F #51175F #5F1749
triadic
#51175F #5F5117 #175F51
tetradic
#51175F #5F2D17 #255F17 #17495F
square
#51175F #5F2D17 #255F17 #17495F
split-complementary
#51175F #495F17 #175F2D
monochromatic
#150619 #270B2E #51175F #7B2390 #A52FC2

Accessibility & contrast

On white

12.82
#51175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#51175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51175F
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51175F#FFFFFF#000000##FFFFFF
##51175F1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#1C345D
Tritanopia (blue-blind)
#512539
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51175f;
/* rgb */ color: rgb(81, 23, 95);
/* oklch */ color: oklch(33.4% 0.129 319.1);
Tailwind
colors: {
  custom: {
    50: '#855a8d',
    500: '#51175f',
    950: '#000000',
  },
}
SCSS
$custom: #51175f;
$custom-light: #855a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#51175f",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 288.333,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33373,
    "c": 0.12889,
    "h": 319.1
  },
  "luminance": 0.03188
}

Semantic roles & 50–950 ramp

primary
#51175F
secondary
#4E963C
accent
#E44463
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51175F

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

Preview Lab → · Contrast checker → · Palette generator →

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