#512CB6#512CB6

#512CB6 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.3% C 0.201 H 287.0°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#512CB6
RGBrgb(81, 44, 182)
HSLhsl(256, 61%, 44%)
HSVhsv(256, 76%, 71%)
CMYKcmyk(55.5%, 75.8%, 0%, 28.6%)
CIE-LABlab(31.64, 50.50, -66.74)
CIE-LCHlch(31.64, 83.69, 307.12°)
OKLaboklab(43.33% 0.0585 -0.1921)
OKLCHoklch(43.33% 0.201 287)
XYZxyz(12.7350, 6.9274, 44.9130)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CB6 #91B62C
analogous
#2C4CB6 #512CB6 #962CB6
triadic
#512CB6 #B6512C #2CB651
tetradic
#512CB6 #B62C4C #91B62C #2CB696
square
#512CB6 #B62C4C #91B62C #2CB696
split-complementary
#512CB6 #B6962C #4CB62C
monochromatic
#251453 #3B2085 #512CB6 #704CD4 #977DE0

Accessibility & contrast

On white

8.80
#512CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#512CB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CB6
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CB6#FFFFFF#000000##FFFFFF
##512CB61.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#24536F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #512cb6;
/* rgb */ color: rgb(81, 44, 182);
/* oklch */ color: oklch(43.3% 0.201 287.0);
Tailwind
colors: {
  custom: {
    50: '#8d6acd',
    500: '#512cb6',
    950: '#000000',
  },
}
SCSS
$custom: #512cb6;
$custom-light: #8d6acd;
$custom-dark: #000000;
JSON
{
  "hex": "#512cb6",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 256.087,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43329,
    "c": 0.20079,
    "h": 287
  },
  "luminance": 0.06928
}

Semantic roles & 50–950 ramp

primary
#512CB6
secondary
#B2C876
accent
#E444B9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #512CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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