#51185A#51185A

#51185A is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.123 H 321.9°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#51185A
RGBrgb(81, 24, 90)
HSLhsl(292, 58%, 22%)
HSVhsv(292, 73%, 35%)
CMYKcmyk(10%, 73.3%, 0%, 64.7%)
CIE-LABlab(20.60, 36.40, -27.08)
CIE-LCHlch(20.60, 45.37, 323.35°)
OKLaboklab(33.13% 0.0965 -0.0756)
OKLCHoklch(33.13% 0.123 321.9)
XYZxyz(5.5652, 3.1411, 9.9840)
Luminance0.0314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51185A #215A18
analogous
#30185A #51185A #5A1842
triadic
#51185A #5A5118 #185A51
tetradic
#51185A #5A3018 #215A18 #18425A
square
#51185A #5A3018 #215A18 #18425A
split-complementary
#51185A #425A18 #185A30
monochromatic
#160618 #260B2A #51185A #7C258A #A832BB

Accessibility & contrast

On white

12.90
#51185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51185A
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51185A#FFFFFF#000000##FFFFFF
##51185A1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042D5C
Deuteranopia (green-blind)
#203458
Tritanopia (blue-blind)
#522337
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51185a;
/* rgb */ color: rgb(81, 24, 90);
/* oklch */ color: oklch(33.1% 0.123 321.9);
Tailwind
colors: {
  custom: {
    50: '#845a89',
    500: '#51185a',
    950: '#000000',
  },
}
SCSS
$custom: #51185a;
$custom-light: #845a89;
$custom-dark: #000000;
JSON
{
  "hex": "#51185a",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 291.818,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33132,
    "c": 0.12256,
    "h": 321.9
  },
  "luminance": 0.03141
}

Semantic roles & 50–950 ramp

primary
#51185A
secondary
#49913D
accent
#E1475C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #51185A

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

Preview Lab → · Contrast checker → · Palette generator →

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