#51185D#51185D

#51185D is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.3% C 0.126 H 320.1°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#51185D
RGBrgb(81, 24, 93)
HSLhsl(290, 59%, 23%)
HSVhsv(290, 74%, 36%)
CMYKcmyk(12.9%, 74.2%, 0%, 63.5%)
CIE-LABlab(20.80, 37.03, -28.76)
CIE-LCHlch(20.80, 46.89, 322.17°)
OKLaboklab(33.34% 0.0964 -0.0805)
OKLCHoklch(33.34% 0.126 320.1)
XYZxyz(5.6955, 3.1932, 10.6701)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51185D #245D18
analogous
#2E185D #51185D #5D1846
triadic
#51185D #5D5118 #185D51
tetradic
#51185D #5D2E18 #245D18 #18465D
square
#51185D #5D2E18 #245D18 #18465D
split-complementary
#51185D #465D18 #185D2E
monochromatic
#150618 #270B2C #51185D #7B258E #A631BE

Accessibility & contrast

On white

12.82
#51185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#51185D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51185D
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51185D#FFFFFF#000000##FFFFFF
##51185D1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5F
Deuteranopia (green-blind)
#1E345B
Tritanopia (blue-blind)
#512538
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51185d;
/* rgb */ color: rgb(81, 24, 93);
/* oklch */ color: oklch(33.3% 0.126 320.1);
Tailwind
colors: {
  custom: {
    50: '#845b8b',
    500: '#51185d',
    950: '#000000',
  },
}
SCSS
$custom: #51185d;
$custom-light: #845b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#51185d",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 289.565,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33341,
    "c": 0.12553,
    "h": 320.1
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#51185D
secondary
#4C933D
accent
#E24661
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51185D

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

Preview Lab → · Contrast checker → · Palette generator →

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