#512DC3#512DC3

#512DC3 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.7% C 0.215 H 284.7°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#512DC3
RGBrgb(81, 45, 195)
HSLhsl(254, 63%, 47%)
HSVhsv(254, 77%, 76%)
CMYKcmyk(58.5%, 76.9%, 0%, 23.5%)
CIE-LABlab(33.06, 53.71, -72.08)
CIE-LCHlch(33.06, 89.89, 306.69°)
OKLaboklab(44.7% 0.0543 -0.2077)
OKLCHoklch(44.7% 0.215 284.7)
XYZxyz(14.1790, 7.5653, 52.3323)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DC3 #9FC32D
analogous
#2D54C3 #512DC3 #9C2DC3
triadic
#512DC3 #C3512D #2DC351
tetradic
#512DC3 #C32D54 #9FC32D #2DC39C
square
#512DC3 #C32D54 #9FC32D #2DC39C
split-complementary
#512DC3 #C39C2D #54C32D
monochromatic
#281660 #3C2291 #512DC3 #7555D8 #9D87E3

Accessibility & contrast

On white

8.36
#512DC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#512DC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512DC3
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512DC3#FFFFFF#000000##FFFFFF
##512DC31.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C7
Deuteranopia (green-blind)
#0049C0
Tritanopia (blue-blind)
#0C5877
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #512dc3;
/* rgb */ color: rgb(81, 45, 195);
/* oklch */ color: oklch(44.7% 0.215 284.7);
Tailwind
colors: {
  custom: {
    50: '#8f6bd6',
    500: '#512dc3',
    950: '#000000',
  },
}
SCSS
$custom: #512dc3;
$custom-light: #8f6bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#512dc3",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 195
  },
  "hsl": {
    "h": 254.4,
    "s": 62.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44701,
    "c": 0.21466,
    "h": 284.7
  },
  "luminance": 0.07566
}

Semantic roles & 50–950 ramp

primary
#512DC3
secondary
#BACD7F
accent
#E642BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #512DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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