#51185C#51185C

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

Color values

HEX#51185C
RGBrgb(81, 24, 92)
HSLhsl(290, 59%, 23%)
HSVhsv(290, 74%, 36%)
CMYKcmyk(12%, 73.9%, 0%, 63.9%)
CIE-LABlab(20.73, 36.82, -28.20)
CIE-LCHlch(20.73, 46.38, 322.55°)
OKLaboklab(33.27% 0.0964 -0.0788)
OKLCHoklch(33.27% 0.125 320.7)
XYZxyz(5.6515, 3.1756, 10.4384)
Luminance0.0318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51185C #235C18
analogous
#2F185C #51185C #5C1845
triadic
#51185C #5C5118 #185C51
tetradic
#51185C #5C2F18 #235C18 #18455C
square
#51185C #5C2F18 #235C18 #18455C
split-complementary
#51185C #455C18 #185C2F
monochromatic
#150618 #260B2B #51185C #7C258D #A631BD

Accessibility & contrast

On white

12.84
#51185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51185C
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51185C#FFFFFF#000000##FFFFFF
##51185C1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012E5E
Deuteranopia (green-blind)
#1F345A
Tritanopia (blue-blind)
#522438
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51185c;
/* rgb */ color: rgb(81, 24, 92);
/* oklch */ color: oklch(33.3% 0.125 320.7);
Tailwind
colors: {
  custom: {
    50: '#845b8a',
    500: '#51185c',
    950: '#000000',
  },
}
SCSS
$custom: #51185c;
$custom-light: #845b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#51185c",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 290.294,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33271,
    "c": 0.12454,
    "h": 320.7
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#51185C
secondary
#4B933D
accent
#E2465F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51185C

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

Preview Lab → · Contrast checker → · Palette generator →

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