#512586#512586

#512586 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.153 H 299.8°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#512586
RGBrgb(81, 37, 134)
HSLhsl(267, 57%, 34%)
HSVhsv(267, 72%, 53%)
CMYKcmyk(39.6%, 72.4%, 0%, 47.5%)
CIE-LABlab(26.14, 40.70, -46.52)
CIE-LCHlch(26.14, 61.81, 311.19°)
OKLaboklab(38.13% 0.0761 -0.1327)
OKLCHoklch(38.13% 0.153 299.8)
XYZxyz(8.3569, 4.7936, 23.0346)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512586 #5A8625
analogous
#252A86 #512586 #812586
triadic
#512586 #865125 #258651
tetradic
#512586 #86252A #5A8625 #258681
square
#512586 #86252A #5A8625 #258681
split-complementary
#512586 #868125 #2A8625
monochromatic
#170B26 #341856 #512586 #6E32B6 #8D55D0

Accessibility & contrast

On white

10.72
#512586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#512586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512586
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512586#FFFFFF#000000##FFFFFF
##5125861.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#453D53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #512586;
/* rgb */ color: rgb(81, 37, 134);
/* oklch */ color: oklch(38.1% 0.153 299.8);
Tailwind
colors: {
  custom: {
    50: '#8763aa',
    500: '#512586',
    950: '#000000',
  },
}
SCSS
$custom: #512586;
$custom-light: #8763aa;
$custom-dark: #000000;
JSON
{
  "hex": "#512586",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 134
  },
  "hsl": {
    "h": 267.216,
    "s": 56.725,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38131,
    "c": 0.15297,
    "h": 299.8
  },
  "luminance": 0.04794
}

Semantic roles & 50–950 ramp

primary
#512586
secondary
#88B452
accent
#E0489B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512586

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

Preview Lab → · Contrast checker → · Palette generator →

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