#51165C#51165C

#51165C is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.127 H 320.9°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#51165C
RGBrgb(81, 22, 92)
HSLhsl(291, 61%, 22%)
HSVhsv(291, 76%, 36%)
CMYKcmyk(12%, 76.1%, 0%, 63.9%)
CIE-LABlab(20.42, 37.69, -28.70)
CIE-LCHlch(20.42, 47.37, 322.72°)
OKLaboklab(33.05% 0.0987 -0.0803)
OKLCHoklch(33.05% 0.127 320.9)
XYZxyz(5.6118, 3.0961, 10.4252)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51165C #215C16
analogous
#2E165C #51165C #5C1644
triadic
#51165C #5C5116 #165C51
tetradic
#51165C #5C2E16 #215C16 #16445C
square
#51165C #5C2E16 #215C16 #16445C
split-complementary
#51165C #445C16 #165C2E
monochromatic
#160619 #260A2B #51165C #7C228D #A82EBF

Accessibility & contrast

On white

12.97
#51165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#51165C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51165C
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51165C#FFFFFF#000000##FFFFFF
##51165C1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51165c;
/* rgb */ color: rgb(81, 22, 92);
/* oklch */ color: oklch(33.1% 0.127 320.9);
Tailwind
colors: {
  custom: {
    50: '#855a8a',
    500: '#51165c',
    950: '#000000',
  },
}
SCSS
$custom: #51165c;
$custom-light: #855a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#51165c",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 290.571,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3305,
    "c": 0.12726,
    "h": 320.9
  },
  "luminance": 0.03096
}

Semantic roles & 50–950 ramp

primary
#51165C
secondary
#49933B
accent
#E5435D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51165C

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

Preview Lab → · Contrast checker → · Palette generator →

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