#512164#512164

#512164 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 35.0% C 0.120 H 315.1°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#512164
RGBrgb(81, 33, 100)
HSLhsl(283, 50%, 26%)
HSVhsv(283, 67%, 39%)
CMYKcmyk(19%, 67%, 0%, 60.8%)
CIE-LABlab(22.85, 34.21, -30.09)
CIE-LCHlch(22.85, 45.56, 318.67°)
OKLaboklab(34.97% 0.0846 -0.0844)
OKLCHoklch(34.97% 0.12 315.1)
XYZxyz(6.2371, 3.7574, 12.4508)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512164 #346421
analogous
#2F2164 #512164 #642155
triadic
#512164 #645121 #216451
tetradic
#512164 #642F21 #346421 #215564
square
#512164 #642F21 #346421 #215564
split-complementary
#512164 #556421 #21642F
monochromatic
#130817 #2C1236 #512164 #763092 #9B40C0

Accessibility & contrast

On white

11.99
#512164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#512164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512164
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512164#FFFFFF#000000##FFFFFF
##5121641.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083466
Deuteranopia (green-blind)
#203862
Tritanopia (blue-blind)
#502D3F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #512164;
/* rgb */ color: rgb(81, 33, 100);
/* oklch */ color: oklch(35.0% 0.120 315.1);
Tailwind
colors: {
  custom: {
    50: '#846090',
    500: '#512164',
    950: '#000000',
  },
}
SCSS
$custom: #512164;
$custom-light: #846090;
$custom-dark: #000000;
JSON
{
  "hex": "#512164",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 100
  },
  "hsl": {
    "h": 282.985,
    "s": 50.376,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34969,
    "c": 0.11954,
    "h": 315.1
  },
  "luminance": 0.03757
}

Semantic roles & 50–950 ramp

primary
#512164
secondary
#5F9849
accent
#DA4E76
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #512164

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

Preview Lab → · Contrast checker → · Palette generator →

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