#51165F#51165F

#51165F is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.3% C 0.130 H 319.2°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#51165F
RGBrgb(81, 22, 95)
HSLhsl(288, 62%, 23%)
HSVhsv(288, 77%, 37%)
CMYKcmyk(14.7%, 76.8%, 0%, 62.7%)
CIE-LABlab(20.63, 38.33, -30.35)
CIE-LCHlch(20.63, 48.89, 321.62°)
OKLaboklab(33.27% 0.0985 -0.0851)
OKLCHoklch(33.27% 0.13 319.2)
XYZxyz(5.7455, 3.1496, 11.1296)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51165F #245F16
analogous
#2C165F #51165F #5F1648
triadic
#51165F #5F5116 #165F51
tetradic
#51165F #5F2C16 #245F16 #16485F
square
#51165F #5F2C16 #245F16 #16485F
split-complementary
#51165F #485F16 #165F2C
monochromatic
#150619 #270A2D #51165F #7B2291 #A62DC2

Accessibility & contrast

On white

12.89
#51165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#51165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51165F
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51165F#FFFFFF#000000##FFFFFF
##51165F1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51165f;
/* rgb */ color: rgb(81, 22, 95);
/* oklch */ color: oklch(33.3% 0.130 319.2);
Tailwind
colors: {
  custom: {
    50: '#855a8d',
    500: '#51165f',
    950: '#000000',
  },
}
SCSS
$custom: #51165f;
$custom-light: #855a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#51165f",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 288.493,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33265,
    "c": 0.13019,
    "h": 319.2
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#51165F
secondary
#4C963B
accent
#E54262
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51165F

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

Preview Lab → · Contrast checker → · Palette generator →

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