#512152#512152

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

Color values

HEX#512152
RGBrgb(81, 33, 82)
HSLhsl(299, 43%, 23%)
HSVhsv(299, 60%, 32%)
CMYKcmyk(1.2%, 59.8%, 0%, 67.8%)
CIE-LABlab(21.75, 30.21, -19.91)
CIE-LCHlch(21.75, 36.18, 326.61°)
OKLaboklab(33.81% 0.0836 -0.0549)
OKLCHoklch(33.81% 0.1 326.7)
XYZxyz(5.4601, 3.4466, 8.3587)
Luminance0.0345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512152 #225221
analogous
#392152 #512152 #52213A
triadic
#512152 #525121 #215251
tetradic
#512152 #523921 #225221 #213A52
square
#512152 #523921 #225221 #213A52
split-complementary
#512152 #3A5221 #215239
monochromatic
#160916 #260F26 #512152 #7C337E #A744A9

Accessibility & contrast

On white

12.43
#512152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512152
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512152#FFFFFF#000000##FFFFFF
##5121521.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3054
Deuteranopia (green-blind)
#2B3651
Tritanopia (blue-blind)
#532736
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #512152;
/* rgb */ color: rgb(81, 33, 82);
/* oklch */ color: oklch(33.8% 0.100 326.7);
Tailwind
colors: {
  custom: {
    50: '#845f83',
    500: '#512152',
    950: '#000000',
  },
}
SCSS
$custom: #512152;
$custom-light: #845f83;
$custom-dark: #000000;
JSON
{
  "hex": "#512152",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 298.776,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33809,
    "c": 0.09998,
    "h": 326.7
  },
  "luminance": 0.03446
}

Semantic roles & 50–950 ramp

primary
#512152
secondary
#4A8649
accent
#D25558
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050A
muted
#7C797C

Preview Lab

Preview with #512152

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

Preview Lab → · Contrast checker → · Palette generator →

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