#51135C#51135C

#51135C is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.7% C 0.131 H 321.1°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#51135C
RGBrgb(81, 19, 92)
HSLhsl(291, 66%, 22%)
HSVhsv(291, 79%, 36%)
CMYKcmyk(12%, 79.3%, 0%, 63.9%)
CIE-LABlab(20.00, 38.91, -29.38)
CIE-LCHlch(20.00, 48.76, 322.95°)
OKLaboklab(32.74% 0.102 -0.0823)
OKLCHoklch(32.74% 0.131 321.1)
XYZxyz(5.5578, 2.9881, 10.4072)
Luminance0.0299 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51135C #1E5C13
analogous
#2D135C #51135C #5C1343
triadic
#51135C #5C5113 #135C51
tetradic
#51135C #5C2D13 #1E5C13 #13435C
square
#51135C #5C2D13 #1E5C13 #13435C
split-complementary
#51135C #435C13 #135C2D
monochromatic
#160519 #240929 #51135C #7E1D8F #AA28C1

Accessibility & contrast

On white

13.14
#51135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#51135C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51135C
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51135C#FFFFFF#000000##FFFFFF
##51135C1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#1C335A
Tritanopia (blue-blind)
#522136
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51135c;
/* rgb */ color: rgb(81, 19, 92);
/* oklch */ color: oklch(32.7% 0.131 321.1);
Tailwind
colors: {
  custom: {
    50: '#85588a',
    500: '#51135c',
    950: '#000000',
  },
}
SCSS
$custom: #51135c;
$custom-light: #85588a;
$custom-dark: #000000;
JSON
{
  "hex": "#51135c",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 290.959,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32744,
    "c": 0.13104,
    "h": 321.1
  },
  "luminance": 0.02988
}

Semantic roles & 50–950 ramp

primary
#51135C
secondary
#459437
accent
#E93F59
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51135C

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

Preview Lab → · Contrast checker → · Palette generator →

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