#512DAF#512DAF

#512DAF is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.192 H 288.1°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#512DAF
RGBrgb(81, 45, 175)
HSLhsl(257, 59%, 43%)
HSVhsv(257, 74%, 69%)
CMYKcmyk(53.7%, 74.3%, 0%, 31.4%)
CIE-LABlab(31.16, 48.01, -63.36)
CIE-LCHlch(31.16, 79.49, 307.16°)
OKLaboklab(42.79% 0.0596 -0.1822)
OKLCHoklch(42.79% 0.192 288.1)
XYZxyz(12.0673, 6.7207, 41.2105)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DAF #8BAF2D
analogous
#2D4AAF #512DAF #922DAF
triadic
#512DAF #AF512D #2DAF51
tetradic
#512DAF #AF2D4A #8BAF2D #2DAF92
square
#512DAF #AF2D4A #8BAF2D #2DAF92
split-complementary
#512DAF #AF922D #4AAF2D
monochromatic
#24144E #3A207E #512DAF #6E49D0 #957ADD

Accessibility & contrast

On white

8.96
#512DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#512DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512DAF
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512DAF#FFFFFF#000000##FFFFFF
##512DAF1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#2B516C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #512daf;
/* rgb */ color: rgb(81, 45, 175);
/* oklch */ color: oklch(42.8% 0.192 288.1);
Tailwind
colors: {
  custom: {
    50: '#8c6ac8',
    500: '#512daf',
    950: '#000000',
  },
}
SCSS
$custom: #512daf;
$custom-light: #8c6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#512daf",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 256.615,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42793,
    "c": 0.19166,
    "h": 288.1
  },
  "luminance": 0.06721
}

Semantic roles & 50–950 ramp

primary
#512DAF
secondary
#AEC573
accent
#E246B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #512DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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