#512CA5#512CA5

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

Color values

HEX#512CA5
RGBrgb(81, 44, 165)
HSLhsl(258, 58%, 41%)
HSVhsv(258, 73%, 65%)
CMYKcmyk(50.9%, 73.3%, 0%, 35.3%)
CIE-LABlab(30.08, 45.68, -59.13)
CIE-LCHlch(30.08, 74.72, 307.68°)
OKLaboklab(41.75% 0.0628 -0.1698)
OKLCHoklch(41.75% 0.181 290.3)
XYZxyz(11.0836, 6.2668, 36.2156)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CA5 #80A52C
analogous
#2C43A5 #512CA5 #8D2CA5
triadic
#512CA5 #A5512C #2CA551
tetradic
#512CA5 #A52C43 #80A52C #2CA58D
square
#512CA5 #A52C43 #80A52C #2CA58D
split-complementary
#512CA5 #A58D2C #43A52C
monochromatic
#221244 #391F75 #512CA5 #6C42CD #9272D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512CA5#FFFFFF#000000##FFFFFF
##512CA51.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)
#0049A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#344C66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #512ca5;
/* rgb */ color: rgb(81, 44, 165);
/* oklch */ color: oklch(41.7% 0.181 290.3);
Tailwind
colors: {
  custom: {
    50: '#8a69c1',
    500: '#512ca5',
    950: '#000000',
  },
}
SCSS
$custom: #512ca5;
$custom-light: #8a69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#512ca5",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 258.347,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41748,
    "c": 0.18101,
    "h": 290.3
  },
  "luminance": 0.06267
}

Semantic roles & 50–950 ramp

primary
#512CA5
secondary
#A7C16C
accent
#E147B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #512CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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