#512E86#512E86

#512E86 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.141 H 297.9°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#512E86
RGBrgb(81, 46, 134)
HSLhsl(264, 49%, 35%)
HSVhsv(264, 66%, 53%)
CMYKcmyk(39.6%, 65.7%, 0%, 47.5%)
CIE-LABlab(27.91, 35.82, -43.64)
CIE-LCHlch(27.91, 56.46, 309.38°)
OKLaboklab(39.4% 0.0658 -0.1243)
OKLCHoklch(39.4% 0.141 297.9)
XYZxyz(8.6723, 5.4244, 23.1397)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512E86 #63862E
analogous
#2E3786 #512E86 #7D2E86
triadic
#512E86 #86512E #2E8651
tetradic
#512E86 #862E37 #63862E #2E867D
square
#512E86 #862E37 #63862E #2E867D
split-complementary
#512E86 #867D2E #37862E
monochromatic
#1A0F2B #351E58 #512E86 #6D3EB4 #8D64CA

Accessibility & contrast

On white

10.07
#512E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#512E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512E86
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512E86#FFFFFF#000000##FFFFFF
##512E861.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#004184
Tritanopia (blue-blind)
#444255
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512e86;
/* rgb */ color: rgb(81, 46, 134);
/* oklch */ color: oklch(39.4% 0.141 297.9);
Tailwind
colors: {
  custom: {
    50: '#8669aa',
    500: '#512e86',
    950: '#000000',
  },
}
SCSS
$custom: #512e86;
$custom-light: #8669aa;
$custom-dark: #000000;
JSON
{
  "hex": "#512e86",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 134
  },
  "hsl": {
    "h": 263.864,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39403,
    "c": 0.14064,
    "h": 297.9
  },
  "luminance": 0.05425
}

Semantic roles & 50–950 ramp

primary
#512E86
secondary
#90B15F
accent
#D84FA2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512E86

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

Preview Lab → · Contrast checker → · Palette generator →

#512E86 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva