#512286#512286

#512286 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.157 H 300.4°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#512286
RGBrgb(81, 34, 134)
HSLhsl(268, 60%, 33%)
HSVhsv(268, 75%, 53%)
CMYKcmyk(39.6%, 74.6%, 0%, 47.5%)
CIE-LABlab(25.61, 42.20, -47.38)
CIE-LCHlch(25.61, 63.45, 311.69°)
OKLaboklab(37.75% 0.0792 -0.1352)
OKLCHoklch(37.75% 0.157 300.4)
XYZxyz(8.2674, 4.6145, 23.0048)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512286 #578622
analogous
#222586 #512286 #832286
triadic
#512286 #865122 #228651
tetradic
#512286 #862225 #578622 #228683
square
#512286 #862225 #578622 #228683
split-complementary
#512286 #868322 #258622
monochromatic
#160924 #331655 #512286 #6F2EB7 #8D50D3

Accessibility & contrast

On white

10.92
#512286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#512286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512286
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512286#FFFFFF#000000##FFFFFF
##5122861.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#453B52
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #512286;
/* rgb */ color: rgb(81, 34, 134);
/* oklch */ color: oklch(37.8% 0.157 300.4);
Tailwind
colors: {
  custom: {
    50: '#8762aa',
    500: '#512286',
    950: '#000000',
  },
}
SCSS
$custom: #512286;
$custom-light: #8762aa;
$custom-dark: #000000;
JSON
{
  "hex": "#512286",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 268.2,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37753,
    "c": 0.15672,
    "h": 300.4
  },
  "luminance": 0.04615
}

Semantic roles & 50–950 ramp

primary
#512286
secondary
#85B64E
accent
#E34599
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512286

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

Preview Lab → · Contrast checker → · Palette generator →

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