#51155C#51155C

#51155C is a dark, vivid purple. Relative luminance 0.031; OKLCH L 32.9% C 0.129 H 321.0°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#51155C
RGBrgb(81, 21, 92)
HSLhsl(291, 63%, 22%)
HSVhsv(291, 77%, 36%)
CMYKcmyk(12%, 77.2%, 0%, 63.9%)
CIE-LABlab(20.28, 38.11, -28.93)
CIE-LCHlch(20.28, 47.85, 322.80°)
OKLaboklab(32.94% 0.0999 -0.081)
OKLCHoklch(32.94% 0.129 321)
XYZxyz(5.5930, 3.0587, 10.4189)
Luminance0.0306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51155C #205C15
analogous
#2D155C #51155C #5C1544
triadic
#51155C #5C5115 #155C51
tetradic
#51155C #5C2D15 #205C15 #15445C
square
#51155C #5C2D15 #205C15 #15445C
split-complementary
#51155C #445C15 #155C2D
monochromatic
#160619 #250A2A #51155C #7D208E #A92CC0

Accessibility & contrast

On white

13.03
#51155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#51155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51155C
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51155C#FFFFFF#000000##FFFFFF
##51155C1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51155c;
/* rgb */ color: rgb(81, 21, 92);
/* oklch */ color: oklch(32.9% 0.129 321.0);
Tailwind
colors: {
  custom: {
    50: '#85598a',
    500: '#51155c',
    950: '#000000',
  },
}
SCSS
$custom: #51155c;
$custom-light: #85598a;
$custom-dark: #000000;
JSON
{
  "hex": "#51155c",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 290.704,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32944,
    "c": 0.12856,
    "h": 321
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#51155C
secondary
#479339
accent
#E6425B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51155C

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

Preview Lab → · Contrast checker → · Palette generator →

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