#512267#512267

#512267 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.3% C 0.121 H 313.3°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#512267
RGBrgb(81, 34, 103)
HSLhsl(281, 50%, 27%)
HSVhsv(281, 67%, 40%)
CMYKcmyk(21.4%, 67%, 0%, 59.6%)
CIE-LABlab(23.25, 34.39, -31.42)
CIE-LCHlch(23.25, 46.58, 317.59°)
OKLaboklab(35.32% 0.0832 -0.0883)
OKLCHoklch(35.32% 0.121 313.3)
XYZxyz(6.4131, 3.8728, 13.2390)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512267 #386722
analogous
#2F2267 #512267 #67225B
triadic
#512267 #675122 #226751
tetradic
#512267 #672F22 #386722 #225B67
square
#512267 #672F22 #386722 #225B67
split-complementary
#512267 #5B6722 #22672F
monochromatic
#120817 #2D1339 #512267 #753195 #9943C1

Accessibility & contrast

On white

11.83
#512267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#512267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512267
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512267#FFFFFF#000000##FFFFFF
##5122671.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053569
Deuteranopia (green-blind)
#1E3965
Tritanopia (blue-blind)
#4F2F41
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #512267;
/* rgb */ color: rgb(81, 34, 103);
/* oklch */ color: oklch(35.3% 0.121 313.3);
Tailwind
colors: {
  custom: {
    50: '#846093',
    500: '#512267',
    950: '#000000',
  },
}
SCSS
$custom: #512267;
$custom-light: #846093;
$custom-dark: #000000;
JSON
{
  "hex": "#512267",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 103
  },
  "hsl": {
    "h": 280.87,
    "s": 50.365,
    "l": 26.863
  },
  "oklch": {
    "l": 0.35319,
    "c": 0.12136,
    "h": 313.3
  },
  "luminance": 0.03873
}

Semantic roles & 50–950 ramp

primary
#512267
secondary
#649B4A
accent
#DA4E7B
background
#F8F5F9
surface
#EFEAF1
border
#CAC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #512267

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

Preview Lab → · Contrast checker → · Palette generator →

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