#512686#512686

#512686 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.152 H 299.6°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#512686
RGBrgb(81, 38, 134)
HSLhsl(267, 56%, 34%)
HSVhsv(267, 72%, 53%)
CMYKcmyk(39.6%, 71.6%, 0%, 47.5%)
CIE-LABlab(26.32, 40.19, -46.22)
CIE-LCHlch(26.32, 61.25, 311.01°)
OKLaboklab(38.26% 0.075 -0.1318)
OKLCHoklch(38.26% 0.152 299.6)
XYZxyz(8.3885, 4.8567, 23.0451)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512686 #5B8626
analogous
#262B86 #512686 #812686
triadic
#512686 #865126 #268651
tetradic
#512686 #86262B #5B8626 #268681
square
#512686 #86262B #5B8626 #268681
split-complementary
#512686 #868126 #2B8626
monochromatic
#170B27 #341856 #512686 #6E34B6 #8D57CF

Accessibility & contrast

On white

10.65
#512686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#512686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512686
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512686#FFFFFF#000000##FFFFFF
##5126861.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.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: #512686;
/* rgb */ color: rgb(81, 38, 134);
/* oklch */ color: oklch(38.3% 0.152 299.6);
Tailwind
colors: {
  custom: {
    50: '#8764aa',
    500: '#512686',
    950: '#000000',
  },
}
SCSS
$custom: #512686;
$custom-light: #8764aa;
$custom-dark: #000000;
JSON
{
  "hex": "#512686",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 134
  },
  "hsl": {
    "h": 266.875,
    "s": 55.814,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38262,
    "c": 0.15168,
    "h": 299.6
  },
  "luminance": 0.04857
}

Semantic roles & 50–950 ramp

primary
#512686
secondary
#89B454
accent
#DF499C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512686

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

Preview Lab → · Contrast checker → · Palette generator →

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