#512ABC#512ABC

#512ABC is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.7% C 0.210 H 286.1°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#512ABC
RGBrgb(81, 42, 188)
HSLhsl(256, 63%, 45%)
HSVhsv(256, 78%, 74%)
CMYKcmyk(56.9%, 77.7%, 0%, 26.3%)
CIE-LABlab(31.89, 53.14, -69.89)
CIE-LCHlch(31.89, 87.80, 307.25°)
OKLaboklab(43.68% 0.0583 -0.2013)
OKLCHoklch(43.68% 0.21 286.1)
XYZxyz(13.2957, 7.0353, 48.2246)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512ABC #95BC2A
analogous
#2A4CBC #512ABC #9A2ABC
triadic
#512ABC #BC512A #2ABC51
tetradic
#512ABC #BC2A4C #95BC2A #2ABC9A
square
#512ABC #BC2A4C #95BC2A #2ABC9A
split-complementary
#512ABC #BC9A2A #4CBC2A
monochromatic
#261458 #3B1F8A #512ABC #714CD7 #997EE2

Accessibility & contrast

On white

8.72
#512ABC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512ABC
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512ABC#FFFFFF#000000##FFFFFF
##512ABC1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC0
Deuteranopia (green-blind)
#0047B9
Tritanopia (blue-blind)
#1C5472
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #512abc;
/* rgb */ color: rgb(81, 42, 188);
/* oklch */ color: oklch(43.7% 0.210 286.1);
Tailwind
colors: {
  custom: {
    50: '#8e69d1',
    500: '#512abc',
    950: '#000000',
  },
}
SCSS
$custom: #512abc;
$custom-light: #8e69d1;
$custom-dark: #000000;
JSON
{
  "hex": "#512abc",
  "rgb": {
    "r": 81,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 256.027,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43675,
    "c": 0.20953,
    "h": 286.1
  },
  "luminance": 0.07036
}

Semantic roles & 50–950 ramp

primary
#512ABC
secondary
#B4CB77
accent
#E741BA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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