#51145D#51145D

#51145D is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.9% C 0.131 H 320.5°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#51145D
RGBrgb(81, 20, 93)
HSLhsl(290, 65%, 22%)
HSVhsv(290, 78%, 36%)
CMYKcmyk(12.9%, 78.5%, 0%, 63.5%)
CIE-LABlab(20.20, 38.73, -29.71)
CIE-LCHlch(20.20, 48.81, 322.50°)
OKLaboklab(32.92% 0.1009 -0.0832)
OKLCHoklch(32.92% 0.131 320.5)
XYZxyz(5.6190, 3.0402, 10.6447)
Luminance0.0304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51145D #205D14
analogous
#2D145D #51145D #5D1445
triadic
#51145D #5D5114 #145D51
tetradic
#51145D #5D2D14 #205D14 #14455D
square
#51145D #5D2D14 #205D14 #14455D
split-complementary
#51145D #455D14 #145D2D
monochromatic
#160519 #25092B #51145D #7D1F8F #A92AC2

Accessibility & contrast

On white

13.06
#51145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#51145D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51145D
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51145D#FFFFFF#000000##FFFFFF
##51145D1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51145d;
/* rgb */ color: rgb(81, 20, 93);
/* oklch */ color: oklch(32.9% 0.131 320.5);
Tailwind
colors: {
  custom: {
    50: '#85598b',
    500: '#51145d',
    950: '#000000',
  },
}
SCSS
$custom: #51145d;
$custom-light: #85598b;
$custom-dark: #000000;
JSON
{
  "hex": "#51145d",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 290.137,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32915,
    "c": 0.13077,
    "h": 320.5
  },
  "luminance": 0.0304
}

Semantic roles & 50–950 ramp

primary
#51145D
secondary
#479538
accent
#E8405C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51145D

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

Preview Lab → · Contrast checker → · Palette generator →

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