#512261#512261

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

Color values

HEX#512261
RGBrgb(81, 34, 97)
HSLhsl(285, 48%, 26%)
HSVhsv(285, 65%, 38%)
CMYKcmyk(16.5%, 64.9%, 0%, 62%)
CIE-LABlab(22.85, 32.98, -28.13)
CIE-LCHlch(22.85, 43.34, 319.54°)
OKLaboklab(34.9% 0.0833 -0.0787)
OKLCHoklch(34.9% 0.115 316.6)
XYZxyz(6.1227, 3.7567, 11.7095)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512261 #326122
analogous
#312261 #512261 #612251
triadic
#512261 #615122 #226151
tetradic
#512261 #613122 #326122 #225161
square
#512261 #613122 #326122 #225161
split-complementary
#512261 #516122 #226131
monochromatic
#130817 #2B1234 #512261 #77328E #9D42BC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512261#FFFFFF#000000##FFFFFF
##5122611.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)
#0F3463
Deuteranopia (green-blind)
#23385F
Tritanopia (blue-blind)
#502D3E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #512261;
/* rgb */ color: rgb(81, 34, 97);
/* oklch */ color: oklch(34.9% 0.115 316.6);
Tailwind
colors: {
  custom: {
    50: '#84608e',
    500: '#512261',
    950: '#000000',
  },
}
SCSS
$custom: #512261;
$custom-light: #84608e;
$custom-dark: #000000;
JSON
{
  "hex": "#512261",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 97
  },
  "hsl": {
    "h": 284.762,
    "s": 48.092,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34904,
    "c": 0.11457,
    "h": 316.6
  },
  "luminance": 0.03756
}

Semantic roles & 50–950 ramp

primary
#512261
secondary
#5D954A
accent
#D85073
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #512261

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

Preview Lab → · Contrast checker → · Palette generator →

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