#512486#512486

#512486 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.154 H 300.0°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#512486
RGBrgb(81, 36, 134)
HSLhsl(268, 58%, 33%)
HSVhsv(268, 73%, 53%)
CMYKcmyk(39.6%, 73.1%, 0%, 47.5%)
CIE-LABlab(25.96, 41.21, -46.81)
CIE-LCHlch(25.96, 62.37, 311.36°)
OKLaboklab(38% 0.0772 -0.1336)
OKLCHoklch(38% 0.154 300)
XYZxyz(8.3262, 4.7322, 23.0244)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512486 #598624
analogous
#242886 #512486 #822486
triadic
#512486 #865124 #248651
tetradic
#512486 #862428 #598624 #248682
square
#512486 #862428 #598624 #248682
split-complementary
#512486 #868224 #288624
monochromatic
#170A26 #341756 #512486 #6E31B6 #8D53D1

Accessibility & contrast

On white

10.79
#512486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#512486 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512486
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512486#FFFFFF#000000##FFFFFF
##5124861.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#453C52
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #512486;
/* rgb */ color: rgb(81, 36, 134);
/* oklch */ color: oklch(38.0% 0.154 300.0);
Tailwind
colors: {
  custom: {
    50: '#8763aa',
    500: '#512486',
    950: '#000000',
  },
}
SCSS
$custom: #512486;
$custom-light: #8763aa;
$custom-dark: #000000;
JSON
{
  "hex": "#512486",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 134
  },
  "hsl": {
    "h": 267.551,
    "s": 57.647,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38002,
    "c": 0.15424,
    "h": 300
  },
  "luminance": 0.04732
}

Semantic roles & 50–950 ramp

primary
#512486
secondary
#87B551
accent
#E1479A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512486

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

Preview Lab → · Contrast checker → · Palette generator →

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