#512CA7#512CA7

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

Color values

HEX#512CA7
RGBrgb(81, 44, 167)
HSLhsl(258, 58%, 41%)
HSVhsv(258, 74%, 65%)
CMYKcmyk(51.5%, 73.7%, 0%, 34.5%)
CIE-LABlab(30.25, 46.24, -60.04)
CIE-LCHlch(30.25, 75.79, 307.60°)
OKLaboklab(41.93% 0.0623 -0.1725)
OKLCHoklch(41.93% 0.183 289.9)
XYZxyz(11.2671, 6.3402, 37.1818)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CA7 #82A72C
analogous
#2C45A7 #512CA7 #8F2CA7
triadic
#512CA7 #A7512C #2CA751
tetradic
#512CA7 #A72C45 #82A72C #2CA78F
square
#512CA7 #A72C45 #82A72C #2CA78F
split-complementary
#512CA7 #A78F2C #45A72C
monochromatic
#221246 #3A1F77 #512CA7 #6C43CD #9273DA

Accessibility & contrast

On white

9.26
#512CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#512CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CA7
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CA7#FFFFFF#000000##FFFFFF
##512CA71.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#324D67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #512ca7;
/* rgb */ color: rgb(81, 44, 167);
/* oklch */ color: oklch(41.9% 0.183 289.9);
Tailwind
colors: {
  custom: {
    50: '#8b69c2',
    500: '#512ca7',
    950: '#000000',
  },
}
SCSS
$custom: #512ca7;
$custom-light: #8b69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#512ca7",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 258.049,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4193,
    "c": 0.18337,
    "h": 289.9
  },
  "luminance": 0.06341
}

Semantic roles & 50–950 ramp

primary
#512CA7
secondary
#A8C26D
accent
#E246B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #512CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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