#512EA9#512EA9

#512EA9 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.183 H 289.1°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#512EA9
RGBrgb(81, 46, 169)
HSLhsl(257, 57%, 42%)
HSVhsv(257, 73%, 66%)
CMYKcmyk(52.1%, 72.8%, 0%, 33.7%)
CIE-LABlab(30.80, 45.78, -60.35)
CIE-LCHlch(30.80, 75.75, 307.18°)
OKLaboklab(42.37% 0.0601 -0.1734)
OKLCHoklch(42.37% 0.183 289.1)
XYZxyz(11.5297, 6.5674, 38.1885)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EA9 #86A92E
analogous
#2E49A9 #512EA9 #8E2EA9
triadic
#512EA9 #A9512E #2EA951
tetradic
#512EA9 #A92E49 #86A92E #2EA98E
square
#512EA9 #A92E49 #86A92E #2EA98E
split-complementary
#512EA9 #A98E2E #49A92E
monochromatic
#231449 #3A2179 #512EA9 #6D47CD #9377DA

Accessibility & contrast

On white

9.08
#512EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#512EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512EA9
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EA9#FFFFFF#000000##FFFFFF
##512EA91.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512ea9;
/* rgb */ color: rgb(81, 46, 169);
/* oklch */ color: oklch(42.4% 0.183 289.1);
Tailwind
colors: {
  custom: {
    50: '#8b6ac4',
    500: '#512ea9',
    950: '#000000',
  },
}
SCSS
$custom: #512ea9;
$custom-light: #8b6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#512ea9",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 257.073,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42371,
    "c": 0.18349,
    "h": 289.1
  },
  "luminance": 0.06568
}

Semantic roles & 50–950 ramp

primary
#512EA9
secondary
#ABC271
accent
#E047B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #512EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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