#512CC1#512CC1

#512CC1 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.4% C 0.213 H 285.1°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#512CC1
RGBrgb(81, 44, 193)
HSLhsl(255, 63%, 46%)
HSVhsv(255, 77%, 76%)
CMYKcmyk(58%, 77.2%, 0%, 24.3%)
CIE-LABlab(32.70, 53.62, -71.49)
CIE-LCHlch(32.70, 89.36, 306.87°)
OKLaboklab(44.39% 0.0555 -0.206)
OKLCHoklch(44.39% 0.213 285.1)
XYZxyz(13.9167, 7.4001, 51.1368)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CC1 #9CC12C
analogous
#2C52C1 #512CC1 #9C2CC1
triadic
#512CC1 #C1512C #2CC151
tetradic
#512CC1 #C12C52 #9CC12C #2CC19C
square
#512CC1 #C12C52 #9CC12C #2CC19C
split-complementary
#512CC1 #C19C2C #52C12C
monochromatic
#27155D #3C218F #512CC1 #7453D8 #9C84E3

Accessibility & contrast

On white

8.47
#512CC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#512CC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CC1
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CC1#FFFFFF#000000##FFFFFF
##512CC11.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C5
Deuteranopia (green-blind)
#0048BE
Tritanopia (blue-blind)
#125776
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512cc1;
/* rgb */ color: rgb(81, 44, 193);
/* oklch */ color: oklch(44.4% 0.213 285.1);
Tailwind
colors: {
  custom: {
    50: '#8f6ad5',
    500: '#512cc1',
    950: '#000000',
  },
}
SCSS
$custom: #512cc1;
$custom-light: #8f6ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#512cc1",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 193
  },
  "hsl": {
    "h": 254.899,
    "s": 62.869,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4439,
    "c": 0.21332,
    "h": 285.1
  },
  "luminance": 0.07401
}

Semantic roles & 50–950 ramp

primary
#512CC1
secondary
#B8CC7D
accent
#E642BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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