#512595#512595

#512595 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.170 H 295.3°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#512595
RGBrgb(81, 37, 149)
HSLhsl(264, 60%, 36%)
HSVhsv(264, 75%, 58%)
CMYKcmyk(45.6%, 75.2%, 0%, 41.6%)
CIE-LABlab(27.41, 44.74, -53.74)
CIE-LCHlch(27.41, 69.92, 309.78°)
OKLaboklab(39.43% 0.0729 -0.1539)
OKLCHoklch(39.43% 0.17 295.3)
XYZxyz(9.4783, 5.2422, 28.9404)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512595 #699525
analogous
#253195 #512595 #892595
triadic
#512595 #955125 #259551
tetradic
#512595 #952531 #699525 #259589
square
#512595 #952531 #699525 #259589
split-complementary
#512595 #958925 #319525
monochromatic
#1C0D33 #361964 #512595 #6C31C6 #8D5ED7

Accessibility & contrast

On white

10.25
#512595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#512595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512595
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512595#FFFFFF#000000##FFFFFF
##5125951.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#3E425B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512595;
/* rgb */ color: rgb(81, 37, 149);
/* oklch */ color: oklch(39.4% 0.170 295.3);
Tailwind
colors: {
  custom: {
    50: '#8964b5',
    500: '#512595',
    950: '#000000',
  },
}
SCSS
$custom: #512595;
$custom-light: #8964b5;
$custom-dark: #000000;
JSON
{
  "hex": "#512595",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 149
  },
  "hsl": {
    "h": 263.571,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3943,
    "c": 0.17029,
    "h": 295.3
  },
  "luminance": 0.05242
}

Semantic roles & 50–950 ramp

primary
#512595
secondary
#95BC5A
accent
#E344A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512595

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

Preview Lab → · Contrast checker → · Palette generator →

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