#512361#512361

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

Color values

HEX#512361
RGBrgb(81, 35, 97)
HSLhsl(285, 47%, 26%)
HSVhsv(285, 64%, 38%)
CMYKcmyk(16.5%, 63.9%, 0%, 62%)
CIE-LABlab(23.05, 32.43, -27.81)
CIE-LCHlch(23.05, 42.72, 319.39°)
OKLaboklab(35.05% 0.0818 -0.0778)
OKLCHoklch(35.05% 0.113 316.5)
XYZxyz(6.1517, 3.8147, 11.7192)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512361 #336123
analogous
#322361 #512361 #612352
triadic
#512361 #615123 #236151
tetradic
#512361 #613223 #336123 #235261
square
#512361 #613223 #336123 #235261
split-complementary
#512361 #526123 #236132
monochromatic
#130816 #2B1334 #512361 #77338E #9C43BB

Accessibility & contrast

On white

11.91
#512361 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#512361 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512361
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512361#FFFFFF#000000##FFFFFF
##5123611.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113463
Deuteranopia (green-blind)
#24385F
Tritanopia (blue-blind)
#502E3E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #512361;
/* rgb */ color: rgb(81, 35, 97);
/* oklch */ color: oklch(35.0% 0.113 316.5);
Tailwind
colors: {
  custom: {
    50: '#84618e',
    500: '#512361',
    950: '#000000',
  },
}
SCSS
$custom: #512361;
$custom-light: #84618e;
$custom-dark: #000000;
JSON
{
  "hex": "#512361",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 97
  },
  "hsl": {
    "h": 284.516,
    "s": 46.97,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35049,
    "c": 0.11291,
    "h": 316.5
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#512361
secondary
#5E954B
accent
#D75174
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #512361

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

Preview Lab → · Contrast checker → · Palette generator →

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