#512259#512259

#512259 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.4% C 0.106 H 321.6°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#512259
RGBrgb(81, 34, 89)
HSLhsl(291, 45%, 24%)
HSVhsv(291, 62%, 35%)
CMYKcmyk(9%, 61.8%, 0%, 65.1%)
CIE-LABlab(22.36, 31.17, -23.63)
CIE-LCHlch(22.36, 39.11, 322.83°)
OKLaboklab(34.38% 0.0828 -0.0656)
OKLCHoklch(34.38% 0.106 321.6)
XYZxyz(5.7683, 3.6149, 9.8432)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512259 #2A5922
analogous
#362259 #512259 #592246
triadic
#512259 #595122 #225951
tetradic
#512259 #593622 #2A5922 #224659
square
#512259 #593622 #2A5922 #224659
split-complementary
#512259 #465922 #225936
monochromatic
#140816 #29112D #512259 #793385 #A244B2

Accessibility & contrast

On white

12.19
#512259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#512259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512259
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512259#FFFFFF#000000##FFFFFF
##5122591.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18325B
Deuteranopia (green-blind)
#283758
Tritanopia (blue-blind)
#522A3A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #512259;
/* rgb */ color: rgb(81, 34, 89);
/* oklch */ color: oklch(34.4% 0.106 321.6);
Tailwind
colors: {
  custom: {
    50: '#846088',
    500: '#512259',
    950: '#000000',
  },
}
SCSS
$custom: #512259;
$custom-light: #846088;
$custom-dark: #000000;
JSON
{
  "hex": "#512259",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 89
  },
  "hsl": {
    "h": 291.273,
    "s": 44.715,
    "l": 24.118
  },
  "oklch": {
    "l": 0.34383,
    "c": 0.10569,
    "h": 321.6
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

primary
#512259
secondary
#548D4A
accent
#D45366
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #512259

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

Preview Lab → · Contrast checker → · Palette generator →

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