#512151#512151

#512151 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.8% C 0.099 H 327.5°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#512151
RGBrgb(81, 33, 81)
HSLhsl(300, 42%, 22%)
HSVhsv(300, 59%, 32%)
CMYKcmyk(0%, 59.3%, 0%, 68.2%)
CIE-LABlab(21.69, 30.00, -19.33)
CIE-LCHlch(21.69, 35.69, 327.21°)
OKLaboklab(33.75% 0.0835 -0.0532)
OKLCHoklch(33.75% 0.099 327.5)
XYZxyz(5.4223, 3.4314, 8.1597)
Luminance0.0343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512151 #215121
analogous
#392151 #512151 #512139
triadic
#512151 #515121 #215151
tetradic
#512151 #513921 #215121 #213951
square
#512151 #513921 #215121 #213951
split-complementary
#512151 #395121 #215139
monochromatic
#160916 #260F26 #512151 #7C337C #A844A8

Accessibility & contrast

On white

12.45
#512151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#512151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512151
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512151#FFFFFF#000000##FFFFFF
##5121511.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3053
Deuteranopia (green-blind)
#2B3650
Tritanopia (blue-blind)
#532735
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #512151;
/* rgb */ color: rgb(81, 33, 81);
/* oklch */ color: oklch(33.8% 0.099 327.5);
Tailwind
colors: {
  custom: {
    50: '#835f82',
    500: '#512151',
    950: '#000000',
  },
}
SCSS
$custom: #512151;
$custom-light: #835f82;
$custom-dark: #000000;
JSON
{
  "hex": "#512151",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 81
  },
  "hsl": {
    "h": 300,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33751,
    "c": 0.09895,
    "h": 327.5
  },
  "luminance": 0.03431
}

Semantic roles & 50–950 ramp

primary
#512151
secondary
#498549
accent
#D25656
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B050A
muted
#7C797C

Preview Lab

Preview with #512151

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

Preview Lab → · Contrast checker → · Palette generator →

#512151 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva