#512EB9#512EB9

#512EB9 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.9% C 0.202 H 286.2°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#512EB9
RGBrgb(81, 46, 185)
HSLhsl(255, 60%, 45%)
HSVhsv(255, 75%, 73%)
CMYKcmyk(56.2%, 75.1%, 0%, 27.5%)
CIE-LABlab(32.27, 50.38, -67.48)
CIE-LCHlch(32.27, 84.21, 306.74°)
OKLaboklab(43.86% 0.0563 -0.1943)
OKLCHoklch(43.86% 0.202 286.2)
XYZxyz(13.1247, 7.2054, 46.5887)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EB9 #96B92E
analogous
#2E50B9 #512EB9 #962EB9
triadic
#512EB9 #B9512E #2EB951
tetradic
#512EB9 #B92E50 #96B92E #2EB996
square
#512EB9 #B92E50 #96B92E #2EB996
split-complementary
#512EB9 #B9962E #50B92E
monochromatic
#261657 #3C2288 #512EB9 #7251D4 #9982E0

Accessibility & contrast

On white

8.60
#512EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#512EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512EB9
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EB9#FFFFFF#000000##FFFFFF
##512EB91.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBD
Deuteranopia (green-blind)
#0048B6
Tritanopia (blue-blind)
#205572
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #512eb9;
/* rgb */ color: rgb(81, 46, 185);
/* oklch */ color: oklch(43.9% 0.202 286.2);
Tailwind
colors: {
  custom: {
    50: '#8d6bcf',
    500: '#512eb9',
    950: '#000000',
  },
}
SCSS
$custom: #512eb9;
$custom-light: #8d6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#512eb9",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 255.108,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43856,
    "c": 0.20225,
    "h": 286.2
  },
  "luminance": 0.07206
}

Semantic roles & 50–950 ramp

primary
#512EB9
secondary
#B5C97A
accent
#E344BB
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #512EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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