#512779#512779

#512779 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.135 H 304.1°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#512779
RGBrgb(81, 39, 121)
HSLhsl(271, 51%, 31%)
HSVhsv(271, 68%, 47%)
CMYKcmyk(33.1%, 67.8%, 0%, 52.5%)
CIE-LABlab(25.51, 36.21, -39.35)
CIE-LCHlch(25.51, 53.48, 312.62°)
OKLaboklab(37.36% 0.0756 -0.1116)
OKLCHoklch(37.36% 0.135 304.1)
XYZxyz(7.5693, 4.5809, 18.5709)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512779 #4F7927
analogous
#282779 #512779 #792778
triadic
#512779 #795127 #277951
tetradic
#512779 #792827 #4F7927 #277879
square
#512779 #792827 #4F7927 #277879
split-complementary
#512779 #787927 #277928
monochromatic
#13091C #32184B #512779 #7036A7 #8F53C8

Accessibility & contrast

On white

10.96
#512779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#512779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512779
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512779#FFFFFF#000000##FFFFFF
##5127791.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#0D3C77
Tritanopia (blue-blind)
#4A394C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #512779;
/* rgb */ color: rgb(81, 39, 121);
/* oklch */ color: oklch(37.4% 0.135 304.1);
Tailwind
colors: {
  custom: {
    50: '#8564a0',
    500: '#512779',
    950: '#000000',
  },
}
SCSS
$custom: #512779;
$custom-light: #8564a0;
$custom-dark: #000000;
JSON
{
  "hex": "#512779",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 121
  },
  "hsl": {
    "h": 270.732,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37358,
    "c": 0.13485,
    "h": 304.1
  },
  "luminance": 0.04581
}

Semantic roles & 50–950 ramp

primary
#512779
secondary
#7DAB51
accent
#DB4D92
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050F
muted
#7C7A7E

Preview Lab

Preview with #512779

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

Preview Lab → · Contrast checker → · Palette generator →

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