#512477#512477

#512477 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.137 H 305.5°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#512477
RGBrgb(81, 36, 119)
HSLhsl(273, 54%, 30%)
HSVhsv(273, 70%, 47%)
CMYKcmyk(31.9%, 69.7%, 0%, 53.3%)
CIE-LABlab(24.77, 37.30, -39.26)
CIE-LCHlch(24.77, 54.15, 313.53°)
OKLaboklab(36.79% 0.0795 -0.1114)
OKLCHoklch(36.79% 0.137 305.5)
XYZxyz(7.3533, 4.3430, 17.9001)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512477 #4A7724
analogous
#272477 #512477 #772473
triadic
#512477 #775124 #247751
tetradic
#512477 #772724 #4A7724 #247377
square
#512477 #772724 #4A7724 #247377
split-complementary
#512477 #737724 #247727
monochromatic
#110819 #311648 #512477 #7132A6 #904CC9

Accessibility & contrast

On white

11.24
#512477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#512477 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512477
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512477#FFFFFF#000000##FFFFFF
##5124771.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003979
Deuteranopia (green-blind)
#0B3B75
Tritanopia (blue-blind)
#4A364A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #512477;
/* rgb */ color: rgb(81, 36, 119);
/* oklch */ color: oklch(36.8% 0.137 305.5);
Tailwind
colors: {
  custom: {
    50: '#85629f',
    500: '#512477',
    950: '#000000',
  },
}
SCSS
$custom: #512477;
$custom-light: #85629f;
$custom-dark: #000000;
JSON
{
  "hex": "#512477",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 119
  },
  "hsl": {
    "h": 272.53,
    "s": 53.548,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36785,
    "c": 0.13683,
    "h": 305.5
  },
  "luminance": 0.04343
}

Semantic roles & 50–950 ramp

primary
#512477
secondary
#77AA4D
accent
#DD4B8E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #512477

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

Preview Lab → · Contrast checker → · Palette generator →

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