#512376#512376

#512376 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.137 H 306.1°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#512376
RGBrgb(81, 35, 118)
HSLhsl(273, 54%, 30%)
HSVhsv(273, 70%, 46%)
CMYKcmyk(31.4%, 70.3%, 0%, 53.7%)
CIE-LABlab(24.51, 37.56, -39.05)
CIE-LCHlch(24.51, 54.18, 313.89°)
OKLaboklab(36.57% 0.0808 -0.1107)
OKLCHoklch(36.57% 0.137 306.1)
XYZxyz(7.2637, 4.2595, 17.5755)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512376 #487623
analogous
#282376 #512376 #762371
triadic
#512376 #765123 #237651
tetradic
#512376 #762823 #487623 #237176
square
#512376 #762823 #487623 #237176
split-complementary
#512376 #717623 #237628
monochromatic
#100718 #311547 #512376 #7131A5 #914AC9

Accessibility & contrast

On white

11.34
#512376 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#512376 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512376
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512376#FFFFFF#000000##FFFFFF
##5123761.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003978
Deuteranopia (green-blind)
#0B3A74
Tritanopia (blue-blind)
#4B3549
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #512376;
/* rgb */ color: rgb(81, 35, 118);
/* oklch */ color: oklch(36.6% 0.137 306.1);
Tailwind
colors: {
  custom: {
    50: '#85629e',
    500: '#512376',
    950: '#000000',
  },
}
SCSS
$custom: #512376;
$custom-light: #85629e;
$custom-dark: #000000;
JSON
{
  "hex": "#512376",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 118
  },
  "hsl": {
    "h": 273.253,
    "s": 54.248,
    "l": 30
  },
  "oklch": {
    "l": 0.36572,
    "c": 0.13708,
    "h": 306.1
  },
  "luminance": 0.04259
}

Semantic roles & 50–950 ramp

primary
#512376
secondary
#75A94C
accent
#DE4A8C
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512376

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

Preview Lab → · Contrast checker → · Palette generator →

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