#512AA9#512AA9

#512AA9 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.188 H 289.8°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#512AA9
RGBrgb(81, 42, 169)
HSLhsl(258, 60%, 41%)
HSVhsv(258, 75%, 66%)
CMYKcmyk(52.1%, 75.1%, 0%, 33.7%)
CIE-LABlab(30.08, 47.81, -61.53)
CIE-LCHlch(30.08, 77.92, 307.85°)
OKLaboklab(41.86% 0.0635 -0.1768)
OKLCHoklch(41.86% 0.188 289.8)
XYZxyz(11.3807, 6.2693, 38.1389)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512AA9 #82A92A
analogous
#2A43A9 #512AA9 #912AA9
triadic
#512AA9 #A9512A #2AA951
tetradic
#512AA9 #A92A43 #82A92A #2AA991
square
#512AA9 #A92A43 #82A92A #2AA991
split-complementary
#512AA9 #A9912A #43A92A
monochromatic
#221247 #3A1E78 #512AA9 #6C41D0 #9272DC

Accessibility & contrast

On white

9.32
#512AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#512AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512AA9
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512AA9#FFFFFF#000000##FFFFFF
##512AA91.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#0044A7
Tritanopia (blue-blind)
#314D67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #512aa9;
/* rgb */ color: rgb(81, 42, 169);
/* oklch */ color: oklch(41.9% 0.188 289.8);
Tailwind
colors: {
  custom: {
    50: '#8b68c4',
    500: '#512aa9',
    950: '#000000',
  },
}
SCSS
$custom: #512aa9;
$custom-light: #8b68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#512aa9",
  "rgb": {
    "r": 81,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 258.425,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41864,
    "c": 0.18785,
    "h": 289.8
  },
  "luminance": 0.0627
}

Semantic roles & 50–950 ramp

primary
#512AA9
secondary
#A8C36C
accent
#E344B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #512AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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