#51155F#51155F

#51155F is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.131 H 319.3°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#51155F
RGBrgb(81, 21, 95)
HSLhsl(289, 64%, 23%)
HSVhsv(289, 78%, 37%)
CMYKcmyk(14.7%, 77.9%, 0%, 62.7%)
CIE-LABlab(20.49, 38.74, -30.59)
CIE-LCHlch(20.49, 49.36, 321.71°)
OKLaboklab(33.16% 0.0996 -0.0858)
OKLCHoklch(33.16% 0.131 319.3)
XYZxyz(5.7268, 3.1122, 11.1233)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51155F #235F15
analogous
#2C155F #51155F #5F1548
triadic
#51155F #5F5115 #155F51
tetradic
#51155F #5F2C15 #235F15 #15485F
square
#51155F #5F2C15 #235F15 #15485F
split-complementary
#51155F #485F15 #155F2C
monochromatic
#150619 #260A2D #51155F #7C2091 #A62BC3

Accessibility & contrast

On white

12.94
#51155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#51155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51155F
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51155F#FFFFFF#000000##FFFFFF
##51155F1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#1A335D
Tritanopia (blue-blind)
#512439
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #51155f;
/* rgb */ color: rgb(81, 21, 95);
/* oklch */ color: oklch(33.2% 0.131 319.3);
Tailwind
colors: {
  custom: {
    50: '#85598d',
    500: '#51155f',
    950: '#000000',
  },
}
SCSS
$custom: #51155f;
$custom-light: #85598d;
$custom-dark: #000000;
JSON
{
  "hex": "#51155f",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 288.649,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33161,
    "c": 0.13146,
    "h": 319.3
  },
  "luminance": 0.03112
}

Semantic roles & 50–950 ramp

primary
#51155F
secondary
#4B963A
accent
#E74160
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51155F

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

Preview Lab → · Contrast checker → · Palette generator →

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