#51155B#51155B

#51155B is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.9% C 0.128 H 321.6°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#51155B
RGBrgb(81, 21, 91)
HSLhsl(291, 63%, 22%)
HSVhsv(291, 77%, 36%)
CMYKcmyk(11%, 76.9%, 0%, 64.3%)
CIE-LABlab(20.21, 37.90, -28.38)
CIE-LCHlch(20.21, 47.35, 323.18°)
OKLaboklab(32.87% 0.0999 -0.0793)
OKLCHoklch(32.87% 0.128 321.6)
XYZxyz(5.5496, 3.0413, 10.1902)
Luminance0.0304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51155B #1F5B15
analogous
#2E155B #51155B #5B1542
triadic
#51155B #5B5115 #155B51
tetradic
#51155B #5B2E15 #1F5B15 #15425B
square
#51155B #5B2E15 #1F5B15 #15425B
split-complementary
#51155B #425B15 #155B2E
monochromatic
#160619 #250A29 #51155B #7D208D #AA2CBE

Accessibility & contrast

On white

13.06
#51155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51155B
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51155B#FFFFFF#000000##FFFFFF
##51155B1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#1E3359
Tritanopia (blue-blind)
#522236
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #51155b;
/* rgb */ color: rgb(81, 21, 91);
/* oklch */ color: oklch(32.9% 0.128 321.6);
Tailwind
colors: {
  custom: {
    50: '#85598a',
    500: '#51155b',
    950: '#000000',
  },
}
SCSS
$custom: #51155b;
$custom-light: #85598a;
$custom-dark: #000000;
JSON
{
  "hex": "#51155b",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 291.429,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32873,
    "c": 0.12759,
    "h": 321.6
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#51155B
secondary
#469239
accent
#E6425A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #51155B

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

Preview Lab → · Contrast checker → · Palette generator →

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