#512676#512676

#512676 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.133 H 305.5°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#512676
RGBrgb(81, 38, 118)
HSLhsl(272, 51%, 31%)
HSVhsv(272, 68%, 46%)
CMYKcmyk(31.4%, 67.8%, 0%, 53.7%)
CIE-LABlab(25.09, 35.98, -38.12)
CIE-LCHlch(25.09, 52.42, 313.34°)
OKLaboklab(36.99% 0.0771 -0.108)
OKLCHoklch(36.99% 0.133 305.5)
XYZxyz(7.3558, 4.4436, 17.6062)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512676 #4B7626
analogous
#292676 #512676 #762673
triadic
#512676 #765126 #267651
tetradic
#512676 #762926 #4B7626 #267376
square
#512676 #762926 #4B7626 #267376
split-complementary
#512676 #737626 #267629
monochromatic
#110819 #311748 #512676 #7135A4 #9050C7

Accessibility & contrast

On white

11.12
#512676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#512676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512676
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512676#FFFFFF#000000##FFFFFF
##5126761.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#113C74
Tritanopia (blue-blind)
#4B374A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #512676;
/* rgb */ color: rgb(81, 38, 118);
/* oklch */ color: oklch(37.0% 0.133 305.5);
Tailwind
colors: {
  custom: {
    50: '#85639e',
    500: '#512676',
    950: '#000000',
  },
}
SCSS
$custom: #512676;
$custom-light: #85639e;
$custom-dark: #000000;
JSON
{
  "hex": "#512676",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 118
  },
  "hsl": {
    "h": 272.25,
    "s": 51.282,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36986,
    "c": 0.13274,
    "h": 305.5
  },
  "luminance": 0.04444
}

Semantic roles & 50–950 ramp

primary
#512676
secondary
#79A84F
accent
#DB4D8F
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #512676

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

Preview Lab → · Contrast checker → · Palette generator →

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