#512599#512599

#512599 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.175 H 294.3°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#512599
RGBrgb(81, 37, 153)
HSLhsl(263, 61%, 37%)
HSVhsv(263, 76%, 60%)
CMYKcmyk(47.1%, 75.8%, 0%, 40%)
CIE-LABlab(27.77, 45.82, -55.61)
CIE-LCHlch(27.77, 72.06, 309.49°)
OKLaboklab(39.79% 0.0719 -0.1594)
OKLCHoklch(39.79% 0.175 294.3)
XYZxyz(9.8031, 5.3721, 30.6512)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512599 #6D9925
analogous
#253399 #512599 #8B2599
triadic
#512599 #995125 #259951
tetradic
#512599 #992533 #6D9925 #25998B
square
#512599 #992533 #6D9925 #25998B
split-complementary
#512599 #998B25 #339925
monochromatic
#1D0D36 #371968 #512599 #6B31CA #8E60D9

Accessibility & contrast

On white

10.12
#512599 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#512599 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512599
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512599#FFFFFF#000000##FFFFFF
##5125991.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004097
Tritanopia (blue-blind)
#3C445D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512599;
/* rgb */ color: rgb(81, 37, 153);
/* oklch */ color: oklch(39.8% 0.175 294.3);
Tailwind
colors: {
  custom: {
    50: '#8964b8',
    500: '#512599',
    950: '#000000',
  },
}
SCSS
$custom: #512599;
$custom-light: #8964b8;
$custom-dark: #000000;
JSON
{
  "hex": "#512599",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 153
  },
  "hsl": {
    "h": 262.759,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39791,
    "c": 0.17486,
    "h": 294.3
  },
  "luminance": 0.05372
}

Semantic roles & 50–950 ramp

primary
#512599
secondary
#99BE5C
accent
#E444A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512599

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

Preview Lab → · Contrast checker → · Palette generator →

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