#512DC8#512DC8

#512DC8 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.2% C 0.220 H 283.9°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#512DC8
RGBrgb(81, 45, 200)
HSLhsl(254, 63%, 48%)
HSVhsv(254, 78%, 78%)
CMYKcmyk(59.5%, 77.5%, 0%, 21.6%)
CIE-LABlab(33.55, 55.12, -74.19)
CIE-LCHlch(33.55, 92.43, 306.61°)
OKLaboklab(45.19% 0.0529 -0.2139)
OKLCHoklch(45.19% 0.22 283.9)
XYZxyz(14.7538, 7.7953, 55.3596)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DC8 #A4C82D
analogous
#2D57C8 #512DC8 #9E2DC8
triadic
#512DC8 #C8512D #2DC851
tetradic
#512DC8 #C82D57 #A4C82D #2DC89E
square
#512DC8 #C82D57 #A4C82D #2DC89E
split-complementary
#512DC8 #C89E2D #57C82D
monochromatic
#291764 #3D2296 #512DC8 #7759DA #A08BE5

Accessibility & contrast

On white

8.21
#512DC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#512DC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512DC8
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512DC8#FFFFFF#000000##FFFFFF
##512DC81.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CC
Deuteranopia (green-blind)
#004AC5
Tritanopia (blue-blind)
#005A7A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #512dc8;
/* rgb */ color: rgb(81, 45, 200);
/* oklch */ color: oklch(45.2% 0.220 283.9);
Tailwind
colors: {
  custom: {
    50: '#906bda',
    500: '#512dc8',
    950: '#000000',
  },
}
SCSS
$custom: #512dc8;
$custom-light: #906bda;
$custom-dark: #000000;
JSON
{
  "hex": "#512dc8",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 253.935,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45192,
    "c": 0.22031,
    "h": 283.9
  },
  "luminance": 0.07796
}

Semantic roles & 50–950 ramp

primary
#512DC8
secondary
#BDCF82
accent
#E641C0
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #512DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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