#51185B#51185B

#51185B is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.2% C 0.124 H 321.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#51185B
RGBrgb(81, 24, 91)
HSLhsl(291, 58%, 23%)
HSVhsv(291, 74%, 36%)
CMYKcmyk(11%, 73.6%, 0%, 64.3%)
CIE-LABlab(20.67, 36.61, -27.64)
CIE-LCHlch(20.67, 45.87, 322.94°)
OKLaboklab(33.2% 0.0964 -0.0772)
OKLCHoklch(33.2% 0.124 321.3)
XYZxyz(5.6081, 3.1582, 10.2097)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51185B #225B18
analogous
#30185B #51185B #5B1843
triadic
#51185B #5B5118 #185B51
tetradic
#51185B #5B3018 #225B18 #18435B
square
#51185B #5B3018 #225B18 #18435B
split-complementary
#51185B #435B18 #185B30
monochromatic
#160618 #260B2B #51185B #7C258B #A732BC

Accessibility & contrast

On white

12.87
#51185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#51185B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51185B
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51185B#FFFFFF#000000##FFFFFF
##51185B1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022E5D
Deuteranopia (green-blind)
#203459
Tritanopia (blue-blind)
#522437
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51185b;
/* rgb */ color: rgb(81, 24, 91);
/* oklch */ color: oklch(33.2% 0.124 321.3);
Tailwind
colors: {
  custom: {
    50: '#845b8a',
    500: '#51185b',
    950: '#000000',
  },
}
SCSS
$custom: #51185b;
$custom-light: #845b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#51185b",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 291.045,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33201,
    "c": 0.12355,
    "h": 321.3
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#51185B
secondary
#4A923D
accent
#E1465D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #51185B

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

Preview Lab → · Contrast checker → · Palette generator →

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