#512597#512597

#512597 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.173 H 294.8°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#512597
RGBrgb(81, 37, 151)
HSLhsl(263, 61%, 37%)
HSVhsv(263, 75%, 59%)
CMYKcmyk(46.4%, 75.5%, 0%, 40.8%)
CIE-LABlab(27.59, 45.28, -54.68)
CIE-LCHlch(27.59, 70.99, 309.63°)
OKLaboklab(39.61% 0.0724 -0.1567)
OKLCHoklch(39.61% 0.173 294.8)
XYZxyz(9.6393, 5.3066, 29.7886)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512597 #6B9725
analogous
#253297 #512597 #8A2597
triadic
#512597 #975125 #259751
tetradic
#512597 #972532 #6B9725 #25978A
square
#512597 #972532 #6B9725 #25978A
split-complementary
#512597 #978A25 #329725
monochromatic
#1C0D35 #371966 #512597 #6B31C8 #8D5FD8

Accessibility & contrast

On white

10.19
#512597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#512597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512597
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512597#FFFFFF#000000##FFFFFF
##5125971.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#3D435C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512597;
/* rgb */ color: rgb(81, 37, 151);
/* oklch */ color: oklch(39.6% 0.173 294.8);
Tailwind
colors: {
  custom: {
    50: '#8964b7',
    500: '#512597',
    950: '#000000',
  },
}
SCSS
$custom: #512597;
$custom-light: #8964b7;
$custom-dark: #000000;
JSON
{
  "hex": "#512597",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 263.158,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3961,
    "c": 0.17258,
    "h": 294.8
  },
  "luminance": 0.05307
}

Semantic roles & 50–950 ramp

primary
#512597
secondary
#97BD5B
accent
#E444A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512597

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

Preview Lab → · Contrast checker → · Palette generator →

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