#512CB9#512CB9

#512CB9 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.6% C 0.204 H 286.4°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#512CB9
RGBrgb(81, 44, 185)
HSLhsl(256, 62%, 45%)
HSVhsv(256, 76%, 73%)
CMYKcmyk(56.2%, 76.2%, 0%, 27.5%)
CIE-LABlab(31.93, 51.35, -68.05)
CIE-LCHlch(31.93, 85.25, 307.04°)
OKLaboklab(43.61% 0.0577 -0.1959)
OKLCHoklch(43.61% 0.204 286.4)
XYZxyz(13.0483, 7.0527, 46.5633)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CB9 #94B92C
analogous
#2C4DB9 #512CB9 #982CB9
triadic
#512CB9 #B9512C #2CB951
tetradic
#512CB9 #B92C4D #94B92C #2CB998
square
#512CB9 #B92C4D #94B92C #2CB998
split-complementary
#512CB9 #B9982C #4DB92C
monochromatic
#261456 #3B2088 #512CB9 #714DD5 #987FE1

Accessibility & contrast

On white

8.71
#512CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#512CB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CB9
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CB9#FFFFFF#000000##FFFFFF
##512CB91.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBD
Deuteranopia (green-blind)
#0047B6
Tritanopia (blue-blind)
#205471
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #512cb9;
/* rgb */ color: rgb(81, 44, 185);
/* oklch */ color: oklch(43.6% 0.204 286.4);
Tailwind
colors: {
  custom: {
    50: '#8d6acf',
    500: '#512cb9',
    950: '#000000',
  },
}
SCSS
$custom: #512cb9;
$custom-light: #8d6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#512cb9",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 255.745,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43615,
    "c": 0.20423,
    "h": 286.4
  },
  "luminance": 0.07053
}

Semantic roles & 50–950 ramp

primary
#512CB9
secondary
#B4C978
accent
#E543BA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #512CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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