#512CB3#512CB3

#512CB3 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.197 H 287.5°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#512CB3
RGBrgb(81, 44, 179)
HSLhsl(256, 61%, 44%)
HSVhsv(256, 75%, 70%)
CMYKcmyk(54.7%, 75.4%, 0%, 29.8%)
CIE-LABlab(31.36, 49.65, -65.42)
CIE-LCHlch(31.36, 82.13, 307.20°)
OKLaboklab(43.04% 0.0593 -0.1882)
OKLCHoklch(43.04% 0.197 287.5)
XYZxyz(12.4283, 6.8047, 43.2976)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CB3 #8EB32C
analogous
#2C4BB3 #512CB3 #942CB3
triadic
#512CB3 #B3512C #2CB351
tetradic
#512CB3 #B32C4B #8EB32C #2CB394
square
#512CB3 #B32C4B #8EB32C #2CB394
split-complementary
#512CB3 #B3942C #4BB32C
monochromatic
#251451 #3B2082 #512CB3 #6F4AD2 #967BDF

Accessibility & contrast

On white

8.89
#512CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#512CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CB3
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CB3#FFFFFF#000000##FFFFFF
##512CB31.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#28526E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #512cb3;
/* rgb */ color: rgb(81, 44, 179);
/* oklch */ color: oklch(43.0% 0.197 287.5);
Tailwind
colors: {
  custom: {
    50: '#8c69cb',
    500: '#512cb3',
    950: '#000000',
  },
}
SCSS
$custom: #512cb3;
$custom-light: #8c69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#512cb3",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 256.444,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43044,
    "c": 0.19734,
    "h": 287.5
  },
  "luminance": 0.06805
}

Semantic roles & 50–950 ramp

primary
#512CB3
secondary
#B0C774
accent
#E444B8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #512CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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