#512FB6#512FB6

#512FB6 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.198 H 286.5°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#512FB6
RGBrgb(81, 47, 182)
HSLhsl(255, 59%, 45%)
HSVhsv(255, 74%, 71%)
CMYKcmyk(55.5%, 74.2%, 0%, 28.6%)
CIE-LABlab(32.17, 49.01, -65.88)
CIE-LCHlch(32.17, 82.11, 306.65°)
OKLaboklab(43.7% 0.0563 -0.1896)
OKLCHoklch(43.7% 0.198 286.5)
XYZxyz(12.8508, 7.1591, 44.9516)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FB6 #94B62F
analogous
#2F51B6 #512FB6 #942FB6
triadic
#512FB6 #B6512F #2FB651
tetradic
#512FB6 #B62F51 #94B62F #2FB694
square
#512FB6 #B62F51 #94B62F #2FB694
split-complementary
#512FB6 #B6942F #51B62F
monochromatic
#261655 #3B2285 #512FB6 #7150D2 #9881DE

Accessibility & contrast

On white

8.63
#512FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#512FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FB6
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FB6#FFFFFF#000000##FFFFFF
##512FB61.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBA
Deuteranopia (green-blind)
#0048B3
Tritanopia (blue-blind)
#245470
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #512fb6;
/* rgb */ color: rgb(81, 47, 182);
/* oklch */ color: oklch(43.7% 0.198 286.5);
Tailwind
colors: {
  custom: {
    50: '#8d6bcd',
    500: '#512fb6',
    950: '#000000',
  },
}
SCSS
$custom: #512fb6;
$custom-light: #8d6bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#512fb6",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 255.111,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43698,
    "c": 0.19775,
    "h": 286.5
  },
  "luminance": 0.0716
}

Semantic roles & 50–950 ramp

primary
#512FB6
secondary
#B4C779
accent
#E246BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #512FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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