#512DB8#512DB8

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

Color values

HEX#512DB8
RGBrgb(81, 45, 184)
HSLhsl(256, 61%, 45%)
HSVhsv(256, 76%, 72%)
CMYKcmyk(56%, 75.5%, 0%, 27.8%)
CIE-LABlab(32.00, 50.58, -67.33)
CIE-LCHlch(32.00, 84.22, 306.92°)
OKLaboklab(43.64% 0.0573 -0.1938)
OKLCHoklch(43.64% 0.202 286.5)
XYZxyz(12.9809, 7.0861, 46.0219)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DB8 #94B82D
analogous
#2D4EB8 #512DB8 #972DB8
triadic
#512DB8 #B8512D #2DB851
tetradic
#512DB8 #B82D4E #94B82D #2DB897
square
#512DB8 #B82D4E #94B82D #2DB897
split-complementary
#512DB8 #B8972D #4EB82D
monochromatic
#261556 #3B2187 #512DB8 #714ED4 #9880E0

Accessibility & contrast

On white

8.69
#512DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#512DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512DB8
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512DB8#FFFFFF#000000##FFFFFF
##512DB81.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0047B5
Tritanopia (blue-blind)
#225471
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #512db8;
/* rgb */ color: rgb(81, 45, 184);
/* oklch */ color: oklch(43.6% 0.202 286.5);
Tailwind
colors: {
  custom: {
    50: '#8d6ace',
    500: '#512db8',
    950: '#000000',
  },
}
SCSS
$custom: #512db8;
$custom-light: #8d6ace;
$custom-dark: #000000;
JSON
{
  "hex": "#512db8",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 255.54,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43639,
    "c": 0.20209,
    "h": 286.5
  },
  "luminance": 0.07087
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #512DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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