#512EC3#512EC3

#512EC3 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.8% C 0.214 H 284.5°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#512EC3
RGBrgb(81, 46, 195)
HSLhsl(254, 62%, 47%)
HSVhsv(254, 76%, 76%)
CMYKcmyk(58.5%, 76.4%, 0%, 23.5%)
CIE-LABlab(33.23, 53.23, -71.80)
CIE-LCHlch(33.23, 89.38, 306.55°)
OKLaboklab(44.82% 0.0536 -0.2069)
OKLCHoklch(44.82% 0.214 284.5)
XYZxyz(14.2176, 7.6426, 52.3451)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EC3 #A0C32E
analogous
#2E55C3 #512EC3 #9C2EC3
triadic
#512EC3 #C3512E #2EC351
tetradic
#512EC3 #C32E55 #A0C32E #2EC39C
square
#512EC3 #C32E55 #A0C32E #2EC39C
split-complementary
#512EC3 #C39C2E #55C32E
monochromatic
#281760 #3C2291 #512EC3 #7557D7 #9E88E3

Accessibility & contrast

On white

8.30
#512EC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#512EC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512EC3
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EC3#FFFFFF#000000##FFFFFF
##512EC31.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512ec3;
/* rgb */ color: rgb(81, 46, 195);
/* oklch */ color: oklch(44.8% 0.214 284.5);
Tailwind
colors: {
  custom: {
    50: '#8f6bd6',
    500: '#512ec3',
    950: '#000000',
  },
}
SCSS
$custom: #512ec3;
$custom-light: #8f6bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#512ec3",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 195
  },
  "hsl": {
    "h": 254.094,
    "s": 61.826,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44817,
    "c": 0.21373,
    "h": 284.5
  },
  "luminance": 0.07643
}

Semantic roles & 50–950 ramp

primary
#512EC3
secondary
#BBCD80
accent
#E543BF
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #512EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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