#512591#512591

#512591 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.166 H 296.5°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#512591
RGBrgb(81, 37, 145)
HSLhsl(264, 59%, 36%)
HSVhsv(264, 74%, 57%)
CMYKcmyk(44.1%, 74.5%, 0%, 43.1%)
CIE-LABlab(27.06, 43.65, -51.85)
CIE-LCHlch(27.06, 67.78, 310.10°)
OKLaboklab(39.08% 0.0738 -0.1484)
OKLCHoklch(39.08% 0.166 296.5)
XYZxyz(9.1644, 5.1166, 27.2873)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512591 #659125
analogous
#252F91 #512591 #872591
triadic
#512591 #915125 #259151
tetradic
#512591 #91252F #659125 #259187
square
#512591 #91252F #659125 #259187
split-complementary
#512591 #918725 #2F9125
monochromatic
#1B0C2F #361960 #512591 #6C31C2 #8D5BD5

Accessibility & contrast

On white

10.38
#512591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#512591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512591
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512591#FFFFFF#000000##FFFFFF
##5125911.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004094
Deuteranopia (green-blind)
#003E8F
Tritanopia (blue-blind)
#404159
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512591;
/* rgb */ color: rgb(81, 37, 145);
/* oklch */ color: oklch(39.1% 0.166 296.5);
Tailwind
colors: {
  custom: {
    50: '#8864b2',
    500: '#512591',
    950: '#000000',
  },
}
SCSS
$custom: #512591;
$custom-light: #8864b2;
$custom-dark: #000000;
JSON
{
  "hex": "#512591",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 264.444,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39076,
    "c": 0.16571,
    "h": 296.5
  },
  "luminance": 0.05117
}

Semantic roles & 50–950 ramp

primary
#512591
secondary
#92BA58
accent
#E345A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512591

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

Preview Lab → · Contrast checker → · Palette generator →

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