#512359#512359

#512359 is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.5% C 0.104 H 321.5°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#512359
RGBrgb(81, 35, 89)
HSLhsl(291, 44%, 24%)
HSVhsv(291, 61%, 35%)
CMYKcmyk(9%, 60.7%, 0%, 65.1%)
CIE-LABlab(22.56, 30.62, -23.31)
CIE-LCHlch(22.56, 38.48, 322.72°)
OKLaboklab(34.53% 0.0814 -0.0647)
OKLCHoklch(34.53% 0.104 321.5)
XYZxyz(5.7973, 3.6729, 9.8528)
Luminance0.0367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512359 #2B5923
analogous
#362359 #512359 #592346
triadic
#512359 #595123 #235951
tetradic
#512359 #593623 #2B5923 #234659
square
#512359 #593623 #2B5923 #234659
split-complementary
#512359 #465923 #235936
monochromatic
#140916 #29122D #512359 #793485 #A146B1

Accessibility & contrast

On white

12.11
#512359 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512359
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512359#FFFFFF#000000##FFFFFF
##5123591.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19335B
Deuteranopia (green-blind)
#293858
Tritanopia (blue-blind)
#522B3A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #512359;
/* rgb */ color: rgb(81, 35, 89);
/* oklch */ color: oklch(34.5% 0.104 321.5);
Tailwind
colors: {
  custom: {
    50: '#846188',
    500: '#512359',
    950: '#000000',
  },
}
SCSS
$custom: #512359;
$custom-light: #846188;
$custom-dark: #000000;
JSON
{
  "hex": "#512359",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 89
  },
  "hsl": {
    "h": 291.111,
    "s": 43.548,
    "l": 24.314
  },
  "oklch": {
    "l": 0.34532,
    "c": 0.10394,
    "h": 321.5
  },
  "luminance": 0.03673
}

Semantic roles & 50–950 ramp

primary
#512359
secondary
#558D4B
accent
#D35567
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #512359

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

Preview Lab → · Contrast checker → · Palette generator →

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