#51185F#51185F

#51185F is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.128 H 319.0°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#51185F
RGBrgb(81, 24, 95)
HSLhsl(288, 60%, 23%)
HSVhsv(288, 75%, 37%)
CMYKcmyk(14.7%, 74.7%, 0%, 62.7%)
CIE-LABlab(20.94, 37.46, -29.86)
CIE-LCHlch(20.94, 47.91, 321.44°)
OKLaboklab(33.48% 0.0962 -0.0837)
OKLCHoklch(33.48% 0.128 319)
XYZxyz(5.7853, 3.2291, 11.1428)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51185F #265F18
analogous
#2D185F #51185F #5F1849
triadic
#51185F #5F5118 #185F51
tetradic
#51185F #5F2D18 #265F18 #18495F
square
#51185F #5F2D18 #265F18 #18495F
split-complementary
#51185F #495F18 #185F2D
monochromatic
#150618 #270C2E #51185F #7B2490 #A431C1

Accessibility & contrast

On white

12.76
#51185F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#51185F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51185F
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51185F#FFFFFF#000000##FFFFFF
##51185F1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#1D345D
Tritanopia (blue-blind)
#512639
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51185f;
/* rgb */ color: rgb(81, 24, 95);
/* oklch */ color: oklch(33.5% 0.128 319.0);
Tailwind
colors: {
  custom: {
    50: '#855b8d',
    500: '#51185f',
    950: '#000000',
  },
}
SCSS
$custom: #51185f;
$custom-light: #855b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#51185f",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 95
  },
  "hsl": {
    "h": 288.169,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33483,
    "c": 0.12754,
    "h": 319
  },
  "luminance": 0.03229
}

Semantic roles & 50–950 ramp

primary
#51185F
secondary
#4F953D
accent
#E34564
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51185F

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

Preview Lab → · Contrast checker → · Palette generator →

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