#51154F#51154F

#51154F is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.1% C 0.116 H 329.3°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#51154F
RGBrgb(81, 21, 79)
HSLhsl(302, 59%, 20%)
HSVhsv(302, 74%, 32%)
CMYKcmyk(0%, 74.1%, 2.5%, 68.2%)
CIE-LABlab(19.43, 35.51, -21.54)
CIE-LCHlch(19.43, 41.53, 328.77°)
OKLaboklab(32.07% 0.1 -0.0594)
OKLCHoklch(32.07% 0.116 329.3)
XYZxyz(5.0727, 2.8505, 7.6786)
Luminance0.0285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51154F #155117
analogous
#351551 #51154F #511531
triadic
#51154F #4F5115 #154F51
tetradic
#51154F #513515 #155117 #153151
square
#51154F #513515 #155117 #153151
split-complementary
#51154F #315115 #155135
monochromatic
#180618 #200820 #51154F #82227E #B22EAE

Accessibility & contrast

On white

13.38
#51154F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#51154F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51154F
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51154F#FFFFFF#000000##FFFFFF
##51154F1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2A51
Deuteranopia (green-blind)
#25324D
Tritanopia (blue-blind)
#541D30
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #51154f;
/* rgb */ color: rgb(81, 21, 79);
/* oklch */ color: oklch(32.1% 0.116 329.3);
Tailwind
colors: {
  custom: {
    50: '#845980',
    500: '#51154f',
    950: '#000000',
  },
}
SCSS
$custom: #51154f;
$custom-light: #845980;
$custom-dark: #000000;
JSON
{
  "hex": "#51154f",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 79
  },
  "hsl": {
    "h": 302,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.32069,
    "c": 0.11634,
    "h": 329.3
  },
  "luminance": 0.0285
}

Semantic roles & 50–950 ramp

primary
#51154F
secondary
#39893C
accent
#E24B46
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #51154F

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

Preview Lab → · Contrast checker → · Palette generator →

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