#512F86#512F86

#512F86 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.139 H 297.7°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#512F86
RGBrgb(81, 47, 134)
HSLhsl(263, 48%, 35%)
HSVhsv(263, 65%, 53%)
CMYKcmyk(39.6%, 64.9%, 0%, 47.5%)
CIE-LABlab(28.12, 35.25, -43.30)
CIE-LCHlch(28.12, 55.83, 309.15°)
OKLaboklab(39.56% 0.0646 -0.1233)
OKLCHoklch(39.56% 0.139 297.7)
XYZxyz(8.7118, 5.5035, 23.1529)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F86 #64862F
analogous
#2F3986 #512F86 #7C2F86
triadic
#512F86 #86512F #2F8651
tetradic
#512F86 #862F39 #64862F #2F867C
square
#512F86 #862F39 #64862F #2F867C
split-complementary
#512F86 #867C2F #39862F
monochromatic
#1A0F2B #361F59 #512F86 #6C3FB3 #8D66C9

Accessibility & contrast

On white

10.00
#512F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#512F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512F86
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F86#FFFFFF#000000##FFFFFF
##512F861.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#014184
Tritanopia (blue-blind)
#444256
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512f86;
/* rgb */ color: rgb(81, 47, 134);
/* oklch */ color: oklch(39.6% 0.139 297.7);
Tailwind
colors: {
  custom: {
    50: '#8669aa',
    500: '#512f86',
    950: '#000000',
  },
}
SCSS
$custom: #512f86;
$custom-light: #8669aa;
$custom-dark: #000000;
JSON
{
  "hex": "#512f86",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 263.448,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39556,
    "c": 0.13918,
    "h": 297.7
  },
  "luminance": 0.05504
}

Semantic roles & 50–950 ramp

primary
#512F86
secondary
#91B060
accent
#D850A3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512F86

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

Preview Lab → · Contrast checker → · Palette generator →

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