#512CA8#512CA8

#512CA8 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.185 H 289.7°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#512CA8
RGBrgb(81, 44, 168)
HSLhsl(258, 58%, 42%)
HSVhsv(258, 74%, 66%)
CMYKcmyk(51.8%, 73.8%, 0%, 34.1%)
CIE-LABlab(30.35, 46.53, -60.50)
CIE-LCHlch(30.35, 76.32, 307.56°)
OKLaboklab(42.02% 0.0621 -0.1738)
OKLCHoklch(42.02% 0.185 289.7)
XYZxyz(11.3599, 6.3773, 37.6706)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CA8 #83A82C
analogous
#2C45A8 #512CA8 #8F2CA8
triadic
#512CA8 #A8512C #2CA851
tetradic
#512CA8 #A82C45 #83A82C #2CA88F
square
#512CA8 #A82C45 #83A82C #2CA88F
split-complementary
#512CA8 #A88F2C #45A82C
monochromatic
#221347 #3A1F78 #512CA8 #6D43CE #9274DB

Accessibility & contrast

On white

9.23
#512CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512CA8
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CA8#FFFFFF#000000##FFFFFF
##512CA81.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512ca8;
/* rgb */ color: rgb(81, 44, 168);
/* oklch */ color: oklch(42.0% 0.185 289.7);
Tailwind
colors: {
  custom: {
    50: '#8b69c3',
    500: '#512ca8',
    950: '#000000',
  },
}
SCSS
$custom: #512ca8;
$custom-light: #8b69c3;
$custom-dark: #000000;
JSON
{
  "hex": "#512ca8",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 257.903,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42021,
    "c": 0.18454,
    "h": 289.7
  },
  "luminance": 0.06378
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #512CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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