#512CC2#512CC2

#512CC2 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.5% C 0.214 H 284.9°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#512CC2
RGBrgb(81, 44, 194)
HSLhsl(255, 63%, 47%)
HSVhsv(255, 77%, 76%)
CMYKcmyk(58.2%, 77.3%, 0%, 23.9%)
CIE-LABlab(32.80, 53.90, -71.92)
CIE-LCHlch(32.80, 89.87, 306.85°)
OKLaboklab(44.49% 0.0552 -0.2072)
OKLCHoklch(44.49% 0.214 284.9)
XYZxyz(14.0287, 7.4449, 51.7262)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CC2 #9DC22C
analogous
#2C52C2 #512CC2 #9C2CC2
triadic
#512CC2 #C2512C #2CC251
tetradic
#512CC2 #C22C52 #9DC22C #2CC29C
square
#512CC2 #C22C52 #9DC22C #2CC29C
split-complementary
#512CC2 #C29C2C #52C22C
monochromatic
#27155E #3C2190 #512CC2 #7453D8 #9C85E3

Accessibility & contrast

On white

8.44
#512CC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#512CC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CC2
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CC2#FFFFFF#000000##FFFFFF
##512CC21.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C6
Deuteranopia (green-blind)
#0048BF
Tritanopia (blue-blind)
#0F5876
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512cc2;
/* rgb */ color: rgb(81, 44, 194);
/* oklch */ color: oklch(44.5% 0.214 284.9);
Tailwind
colors: {
  custom: {
    50: '#8f6ad6',
    500: '#512cc2',
    950: '#000000',
  },
}
SCSS
$custom: #512cc2;
$custom-light: #8f6ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#512cc2",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 194
  },
  "hsl": {
    "h": 254.8,
    "s": 63.025,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44488,
    "c": 0.21444,
    "h": 284.9
  },
  "luminance": 0.07446
}

Semantic roles & 50–950 ramp

primary
#512CC2
secondary
#B9CD7D
accent
#E642BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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