#51155A#51155A

#51155A is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.127 H 322.1°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#51155A
RGBrgb(81, 21, 90)
HSLhsl(292, 62%, 22%)
HSVhsv(292, 77%, 35%)
CMYKcmyk(10%, 76.7%, 0%, 64.7%)
CIE-LABlab(20.14, 37.70, -27.82)
CIE-LCHlch(20.14, 46.85, 323.58°)
OKLaboklab(32.8% 0.1 -0.0777)
OKLCHoklch(32.8% 0.127 322.1)
XYZxyz(5.5068, 3.0242, 9.9645)
Luminance0.0302 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51155A #1E5A15
analogous
#2F155A #51155A #5A1541
triadic
#51155A #5A5115 #155A51
tetradic
#51155A #5A2F15 #1E5A15 #15415A
square
#51155A #5A2F15 #1E5A15 #15415A
split-complementary
#51155A #415A15 #155A2F
monochromatic
#160619 #240928 #51155A #7E218C #AA2CBD

Accessibility & contrast

On white

13.09
#51155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#51155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51155A
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51155A#FFFFFF#000000##FFFFFF
##51155A1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5C
Deuteranopia (green-blind)
#1F3358
Tritanopia (blue-blind)
#522236
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #51155a;
/* rgb */ color: rgb(81, 21, 90);
/* oklch */ color: oklch(32.8% 0.127 322.1);
Tailwind
colors: {
  custom: {
    50: '#855989',
    500: '#51155a',
    950: '#000000',
  },
}
SCSS
$custom: #51155a;
$custom-light: #855989;
$custom-dark: #000000;
JSON
{
  "hex": "#51155a",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 292.174,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32803,
    "c": 0.12662,
    "h": 322.1
  },
  "luminance": 0.03024
}

Semantic roles & 50–950 ramp

primary
#51155A
secondary
#459239
accent
#E54358
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #51155A

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

Preview Lab → · Contrast checker → · Palette generator →

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