#51155E#51155E

#51155E is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.130 H 319.8°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#51155E
RGBrgb(81, 21, 94)
HSLhsl(289, 63%, 23%)
HSVhsv(289, 78%, 37%)
CMYKcmyk(13.8%, 77.7%, 0%, 63.1%)
CIE-LABlab(20.42, 38.53, -30.04)
CIE-LCHlch(20.42, 48.85, 322.06°)
OKLaboklab(33.09% 0.0997 -0.0842)
OKLCHoklch(33.09% 0.13 319.8)
XYZxyz(5.6816, 3.0941, 10.8855)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51155E #225E15
analogous
#2C155E #51155E #5E1546
triadic
#51155E #5E5115 #155E51
tetradic
#51155E #5E2C15 #225E15 #15465E
square
#51155E #5E2C15 #225E15 #15465E
split-complementary
#51155E #465E15 #155E2C
monochromatic
#160619 #260A2C #51155E #7C2090 #A72BC2

Accessibility & contrast

On white

12.97
#51155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51155E
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51155E#FFFFFF#000000##FFFFFF
##51155E1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#1B335C
Tritanopia (blue-blind)
#512338
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #51155e;
/* rgb */ color: rgb(81, 21, 94);
/* oklch */ color: oklch(33.1% 0.130 319.8);
Tailwind
colors: {
  custom: {
    50: '#85598c',
    500: '#51155e',
    950: '#000000',
  },
}
SCSS
$custom: #51155e;
$custom-light: #85598c;
$custom-dark: #000000;
JSON
{
  "hex": "#51155e",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 289.315,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33088,
    "c": 0.13049,
    "h": 319.8
  },
  "luminance": 0.03094
}

Semantic roles & 50–950 ramp

primary
#51155E
secondary
#4A9539
accent
#E7415F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51155E

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

Preview Lab → · Contrast checker → · Palette generator →

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