#512CA9#512CA9

#512CA9 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.186 H 289.4°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#512CA9
RGBrgb(81, 44, 169)
HSLhsl(258, 59%, 42%)
HSVhsv(258, 74%, 66%)
CMYKcmyk(52.1%, 74%, 0%, 33.7%)
CIE-LABlab(30.44, 46.81, -60.95)
CIE-LCHlch(30.44, 76.85, 307.52°)
OKLaboklab(42.11% 0.0618 -0.1751)
OKLCHoklch(42.11% 0.186 289.4)
XYZxyz(11.4534, 6.4148, 38.1631)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CA9 #84A92C
analogous
#2C46A9 #512CA9 #902CA9
triadic
#512CA9 #A9512C #2CA951
tetradic
#512CA9 #A92C46 #84A92C #2CA990
square
#512CA9 #A92C46 #84A92C #2CA990
split-complementary
#512CA9 #A9902C #46A92C
monochromatic
#221348 #3A1F78 #512CA9 #6D44CE #9374DB

Accessibility & contrast

On white

9.20
#512CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#512CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CA9
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CA9#FFFFFF#000000##FFFFFF
##512CA91.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#314E68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #512ca9;
/* rgb */ color: rgb(81, 44, 169);
/* oklch */ color: oklch(42.1% 0.186 289.4);
Tailwind
colors: {
  custom: {
    50: '#8b69c4',
    500: '#512ca9',
    950: '#000000',
  },
}
SCSS
$custom: #512ca9;
$custom-light: #8b69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#512ca9",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 257.76,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42113,
    "c": 0.18571,
    "h": 289.4
  },
  "luminance": 0.06415
}

Semantic roles & 50–950 ramp

primary
#512CA9
secondary
#AAC36E
accent
#E246B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #512CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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