#51155D#51155D

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

Color values

HEX#51155D
RGBrgb(81, 21, 93)
HSLhsl(290, 63%, 22%)
HSVhsv(290, 77%, 36%)
CMYKcmyk(12.9%, 77.4%, 0%, 63.5%)
CIE-LABlab(20.35, 38.32, -29.48)
CIE-LCHlch(20.35, 48.35, 322.42°)
OKLaboklab(33.02% 0.0998 -0.0826)
OKLCHoklch(33.02% 0.13 320.4)
XYZxyz(5.6371, 3.0763, 10.6507)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51155D #215D15
analogous
#2D155D #51155D #5D1545
triadic
#51155D #5D5115 #155D51
tetradic
#51155D #5D2D15 #215D15 #15455D
square
#51155D #5D2D15 #215D15 #15455D
split-complementary
#51155D #455D15 #155D2D
monochromatic
#160619 #260A2B #51155D #7C208F #A82CC1

Accessibility & contrast

On white

13.00
#51155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51155D
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51155D#FFFFFF#000000##FFFFFF
##51155D1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#1C335B
Tritanopia (blue-blind)
#512337
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #51155d;
/* rgb */ color: rgb(81, 21, 93);
/* oklch */ color: oklch(33.0% 0.130 320.4);
Tailwind
colors: {
  custom: {
    50: '#85598b',
    500: '#51155d',
    950: '#000000',
  },
}
SCSS
$custom: #51155d;
$custom-light: #85598b;
$custom-dark: #000000;
JSON
{
  "hex": "#51155d",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 290,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33016,
    "c": 0.12952,
    "h": 320.4
  },
  "luminance": 0.03076
}

Semantic roles & 50–950 ramp

primary
#51155D
secondary
#499439
accent
#E6425D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51155D

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

Preview Lab → · Contrast checker → · Palette generator →

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