#51165E#51165E

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

Color values

HEX#51165E
RGBrgb(81, 22, 94)
HSLhsl(289, 62%, 23%)
HSVhsv(289, 77%, 37%)
CMYKcmyk(13.8%, 76.6%, 0%, 63.1%)
CIE-LABlab(20.56, 38.11, -29.80)
CIE-LCHlch(20.56, 48.38, 321.98°)
OKLaboklab(33.19% 0.0986 -0.0835)
OKLCHoklch(33.19% 0.129 319.7)
XYZxyz(5.7004, 3.1316, 10.8917)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51165E #235E16
analogous
#2D165E #51165E #5E1647
triadic
#51165E #5E5116 #165E51
tetradic
#51165E #5E2D16 #235E16 #16475E
square
#51165E #5E2D16 #235E16 #16475E
split-complementary
#51165E #475E16 #165E2D
monochromatic
#150619 #260A2C #51165E #7C2290 #A62DC1

Accessibility & contrast

On white

12.91
#51165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51165E
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51165E#FFFFFF#000000##FFFFFF
##51165E1.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)
#002E60
Deuteranopia (green-blind)
#1C345C
Tritanopia (blue-blind)
#512438
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51165e;
/* rgb */ color: rgb(81, 22, 94);
/* oklch */ color: oklch(33.2% 0.129 319.7);
Tailwind
colors: {
  custom: {
    50: '#855a8c',
    500: '#51165e',
    950: '#000000',
  },
}
SCSS
$custom: #51165e;
$custom-light: #855a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#51165e",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 289.167,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33193,
    "c": 0.1292,
    "h": 319.7
  },
  "luminance": 0.03131
}

Semantic roles & 50–950 ramp

primary
#51165E
secondary
#4B953B
accent
#E54360
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51165E

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

Preview Lab → · Contrast checker → · Palette generator →

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