#512062#512062

#512062 is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.7% C 0.119 H 316.3°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#512062
RGBrgb(81, 32, 98)
HSLhsl(285, 51%, 25%)
HSVhsv(285, 67%, 38%)
CMYKcmyk(17.3%, 67.3%, 0%, 61.6%)
CIE-LABlab(22.53, 34.27, -29.29)
CIE-LCHlch(22.53, 45.08, 319.47°)
OKLaboklab(34.69% 0.086 -0.0821)
OKLCHoklch(34.69% 0.119 316.3)
XYZxyz(6.1141, 3.6644, 11.9381)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512062 #316220
analogous
#302062 #512062 #622052
triadic
#512062 #625120 #206251
tetradic
#512062 #623020 #316220 #205262
square
#512062 #623020 #316220 #205262
split-complementary
#512062 #526220 #206230
monochromatic
#130817 #2B1134 #512062 #772F90 #9D3EBE

Accessibility & contrast

On white

12.12
#512062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#512062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512062
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512062#FFFFFF#000000##FFFFFF
##5120621.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093364
Deuteranopia (green-blind)
#203760
Tritanopia (blue-blind)
#502C3E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #512062;
/* rgb */ color: rgb(81, 32, 98);
/* oklch */ color: oklch(34.7% 0.119 316.3);
Tailwind
colors: {
  custom: {
    50: '#845f8f',
    500: '#512062',
    950: '#000000',
  },
}
SCSS
$custom: #512062;
$custom-light: #845f8f;
$custom-dark: #000000;
JSON
{
  "hex": "#512062",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 98
  },
  "hsl": {
    "h": 284.545,
    "s": 50.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34693,
    "c": 0.1189,
    "h": 316.3
  },
  "luminance": 0.03664
}

Semantic roles & 50–950 ramp

primary
#512062
secondary
#5C9647
accent
#DA4E72
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #512062

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

Preview Lab → · Contrast checker → · Palette generator →

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