#512ABD#512ABD

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

Color values

HEX#512ABD
RGBrgb(81, 42, 189)
HSLhsl(256, 64%, 45%)
HSVhsv(256, 78%, 74%)
CMYKcmyk(57.1%, 77.8%, 0%, 25.9%)
CIE-LABlab(31.99, 53.42, -70.32)
CIE-LCHlch(31.99, 88.31, 307.23°)
OKLaboklab(43.77% 0.058 -0.2025)
OKLCHoklch(43.77% 0.211 286)
XYZxyz(13.4038, 7.0786, 48.7943)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512ABD #96BD2A
analogous
#2A4DBD #512ABD #9A2ABD
triadic
#512ABD #BD512A #2ABD51
tetradic
#512ABD #BD2A4D #96BD2A #2ABD9A
square
#512ABD #BD2A4D #96BD2A #2ABD9A
split-complementary
#512ABD #BD9A2A #4DBD2A
monochromatic
#261459 #3C1F8B #512ABD #724DD7 #997FE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512ABD#FFFFFF#000000##FFFFFF
##512ABD1.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)
#004FC1
Deuteranopia (green-blind)
#0047BA
Tritanopia (blue-blind)
#1A5573
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #512abd;
/* rgb */ color: rgb(81, 42, 189);
/* oklch */ color: oklch(43.8% 0.211 286.0);
Tailwind
colors: {
  custom: {
    50: '#8e69d2',
    500: '#512abd',
    950: '#000000',
  },
}
SCSS
$custom: #512abd;
$custom-light: #8e69d2;
$custom-dark: #000000;
JSON
{
  "hex": "#512abd",
  "rgb": {
    "r": 81,
    "g": 42,
    "b": 189
  },
  "hsl": {
    "h": 255.918,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43773,
    "c": 0.21065,
    "h": 286
  },
  "luminance": 0.07079
}

Semantic roles & 50–950 ramp

primary
#512ABD
secondary
#B5CB78
accent
#E741BB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512ABD

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

Preview Lab → · Contrast checker → · Palette generator →

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