#512176#512176

#512176 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.140 H 306.5°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#512176
RGBrgb(81, 33, 118)
HSLhsl(274, 56%, 30%)
HSVhsv(274, 72%, 46%)
CMYKcmyk(31.4%, 72%, 0%, 53.7%)
CIE-LABlab(24.15, 38.58, -39.64)
CIE-LCHlch(24.15, 55.32, 314.23°)
OKLaboklab(36.31% 0.0832 -0.1125)
OKLCHoklch(36.31% 0.14 306.5)
XYZxyz(7.2065, 4.1451, 17.5565)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512176 #467621
analogous
#262176 #512176 #762171
triadic
#512176 #765121 #217651
tetradic
#512176 #762621 #467621 #217176
square
#512176 #762621 #467621 #217176
split-complementary
#512176 #717621 #217626
monochromatic
#100718 #301446 #512176 #722EA6 #9146CB

Accessibility & contrast

On white

11.48
#512176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#512176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512176
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512176#FFFFFF#000000##FFFFFF
##5121761.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#073A74
Tritanopia (blue-blind)
#4B3449
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #512176;
/* rgb */ color: rgb(81, 33, 118);
/* oklch */ color: oklch(36.3% 0.140 306.5);
Tailwind
colors: {
  custom: {
    50: '#85609e',
    500: '#512176',
    950: '#000000',
  },
}
SCSS
$custom: #512176;
$custom-light: #85609e;
$custom-dark: #000000;
JSON
{
  "hex": "#512176",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 273.882,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36311,
    "c": 0.13987,
    "h": 306.5
  },
  "luminance": 0.04145
}

Semantic roles & 50–950 ramp

primary
#512176
secondary
#73A94A
accent
#E0488A
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512176

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

Preview Lab → · Contrast checker → · Palette generator →

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