#51185E#51185E

#51185E is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.127 H 319.6°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#51185E
RGBrgb(81, 24, 94)
HSLhsl(289, 59%, 23%)
HSVhsv(289, 74%, 37%)
CMYKcmyk(13.8%, 74.5%, 0%, 63.1%)
CIE-LABlab(20.87, 37.25, -29.31)
CIE-LCHlch(20.87, 47.40, 321.80°)
OKLaboklab(33.41% 0.0963 -0.0821)
OKLCHoklch(33.41% 0.127 319.6)
XYZxyz(5.7401, 3.2110, 10.9049)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51185E #255E18
analogous
#2E185E #51185E #5E1848
triadic
#51185E #5E5118 #185E51
tetradic
#51185E #5E2E18 #255E18 #18485E
square
#51185E #5E2E18 #255E18 #18485E
split-complementary
#51185E #485E18 #185E2E
monochromatic
#150618 #270C2D #51185E #7B248F #A531C0

Accessibility & contrast

On white

12.79
#51185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51185E
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51185E#FFFFFF#000000##FFFFFF
##51185E1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#1D345C
Tritanopia (blue-blind)
#512539
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51185e;
/* rgb */ color: rgb(81, 24, 94);
/* oklch */ color: oklch(33.4% 0.127 319.6);
Tailwind
colors: {
  custom: {
    50: '#845b8c',
    500: '#51185e',
    950: '#000000',
  },
}
SCSS
$custom: #51185e;
$custom-light: #845b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#51185e",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 288.857,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33412,
    "c": 0.12654,
    "h": 319.6
  },
  "luminance": 0.03211
}

Semantic roles & 50–950 ramp

primary
#51185E
secondary
#4E943D
accent
#E34562
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51185E

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

Preview Lab → · Contrast checker → · Palette generator →

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