#51135A#51135A

#51135A is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.6% C 0.129 H 322.3°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#51135A
RGBrgb(81, 19, 90)
HSLhsl(292, 65%, 21%)
HSVhsv(292, 79%, 35%)
CMYKcmyk(10%, 78.9%, 0%, 64.7%)
CIE-LABlab(19.86, 38.50, -28.27)
CIE-LCHlch(19.86, 47.77, 323.71°)
OKLaboklab(32.6% 0.1022 -0.079)
OKLCHoklch(32.6% 0.129 322.3)
XYZxyz(5.4715, 2.9536, 9.9528)
Luminance0.0295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51135A #1C5A13
analogous
#2E135A #51135A #5A1340
triadic
#51135A #5A5113 #135A51
tetradic
#51135A #5A2E13 #1C5A13 #13405A
square
#51135A #5A2E13 #1C5A13 #13405A
split-complementary
#51135A #405A13 #135A2E
monochromatic
#170519 #240827 #51135A #7E1E8D #AC28BF

Accessibility & contrast

On white

13.20
#51135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#51135A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51135A
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51135A#FFFFFF#000000##FFFFFF
##51135A1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5C
Deuteranopia (green-blind)
#1D3258
Tritanopia (blue-blind)
#522035
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51135a;
/* rgb */ color: rgb(81, 19, 90);
/* oklch */ color: oklch(32.6% 0.129 322.3);
Tailwind
colors: {
  custom: {
    50: '#855889',
    500: '#51135a',
    950: '#000000',
  },
}
SCSS
$custom: #51135a;
$custom-light: #855889;
$custom-dark: #000000;
JSON
{
  "hex": "#51135a",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 292.394,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.326,
    "c": 0.12916,
    "h": 322.3
  },
  "luminance": 0.02953
}

Semantic roles & 50–950 ramp

primary
#51135A
secondary
#429237
accent
#E84055
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #51135A

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

Preview Lab → · Contrast checker → · Palette generator →

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