#512AC9#512AC9

#512AC9 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 45.0% C 0.224 H 284.1°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#512AC9
RGBrgb(81, 42, 201)
HSLhsl(255, 65%, 48%)
HSVhsv(255, 79%, 79%)
CMYKcmyk(59.7%, 79.1%, 0%, 21.2%)
CIE-LABlab(33.18, 56.77, -75.39)
CIE-LCHlch(33.18, 94.37, 306.98°)
OKLaboklab(44.96% 0.0544 -0.2173)
OKLCHoklch(44.96% 0.224 284.1)
XYZxyz(14.7607, 7.6213, 55.9403)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512AC9 #A2C92A
analogous
#2A52C9 #512AC9 #A02AC9
triadic
#512AC9 #C9512A #2AC951
tetradic
#512AC9 #C92A52 #A2C92A #2AC9A0
square
#512AC9 #C92A52 #A2C92A #2AC9A0
split-complementary
#512AC9 #C9A02A #52C92A
monochromatic
#281564 #3D1F96 #512AC9 #7655DB #9F87E6

Accessibility & contrast

On white

8.32
#512AC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#512AC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512AC9
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512AC9#FFFFFF#000000##FFFFFF
##512AC91.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CD
Deuteranopia (green-blind)
#0049C6
Tritanopia (blue-blind)
#005A7A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #512ac9;
/* rgb */ color: rgb(81, 42, 201);
/* oklch */ color: oklch(45.0% 0.224 284.1);
Tailwind
colors: {
  custom: {
    50: '#9069db',
    500: '#512ac9',
    950: '#000000',
  },
}
SCSS
$custom: #512ac9;
$custom-light: #9069db;
$custom-dark: #000000;
JSON
{
  "hex": "#512ac9",
  "rgb": {
    "r": 81,
    "g": 42,
    "b": 201
  },
  "hsl": {
    "h": 254.717,
    "s": 65.432,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44963,
    "c": 0.22402,
    "h": 284.1
  },
  "luminance": 0.07622
}

Semantic roles & 50–950 ramp

primary
#512AC9
secondary
#BCD07F
accent
#E83FBF
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #512AC9

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

Preview Lab → · Contrast checker → · Palette generator →

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