#512EB8#512EB8

#512EB8 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.8% C 0.201 H 286.3°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#512EB8
RGBrgb(81, 46, 184)
HSLhsl(255, 60%, 45%)
HSVhsv(255, 75%, 72%)
CMYKcmyk(56%, 75%, 0%, 27.8%)
CIE-LABlab(32.18, 50.09, -67.05)
CIE-LCHlch(32.18, 83.69, 306.76°)
OKLaboklab(43.76% 0.0565 -0.193)
OKLCHoklch(43.76% 0.201 286.3)
XYZxyz(13.0195, 7.1633, 46.0347)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EB8 #95B82E
analogous
#2E50B8 #512EB8 #962EB8
triadic
#512EB8 #B8512E #2EB851
tetradic
#512EB8 #B82E50 #95B82E #2EB896
square
#512EB8 #B82E50 #95B82E #2EB896
split-complementary
#512EB8 #B8962E #50B82E
monochromatic
#261656 #3B2287 #512EB8 #7150D3 #9981DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512EB8#FFFFFF#000000##FFFFFF
##512EB81.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)
#004FBC
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#215471
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #512eb8;
/* rgb */ color: rgb(81, 46, 184);
/* oklch */ color: oklch(43.8% 0.201 286.3);
Tailwind
colors: {
  custom: {
    50: '#8d6bce',
    500: '#512eb8',
    950: '#000000',
  },
}
SCSS
$custom: #512eb8;
$custom-light: #8d6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#512eb8",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 255.217,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43762,
    "c": 0.20109,
    "h": 286.3
  },
  "luminance": 0.07164
}

Semantic roles & 50–950 ramp

primary
#512EB8
secondary
#B4C879
accent
#E345BB
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #512EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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