#512EC0#512EC0

#512EC0 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.5% C 0.210 H 285.0°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#512EC0
RGBrgb(81, 46, 192)
HSLhsl(254, 61%, 47%)
HSVhsv(254, 76%, 75%)
CMYKcmyk(57.8%, 76%, 0%, 24.7%)
CIE-LABlab(32.94, 52.38, -70.52)
CIE-LCHlch(32.94, 87.84, 306.60°)
OKLaboklab(44.53% 0.0545 -0.2031)
OKLCHoklch(44.53% 0.21 285)
XYZxyz(13.8819, 7.5082, 50.5767)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EC0 #9DC02E
analogous
#2E54C0 #512EC0 #9A2EC0
triadic
#512EC0 #C0512E #2EC051
tetradic
#512EC0 #C02E54 #9DC02E #2EC09A
square
#512EC0 #C02E54 #9DC02E #2EC09A
split-complementary
#512EC0 #C09A2E #54C02E
monochromatic
#27165D #3C228F #512EC0 #7455D6 #9C86E2

Accessibility & contrast

On white

8.39
#512EC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#512EC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512EC0
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EC0#FFFFFF#000000##FFFFFF
##512EC01.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C4
Deuteranopia (green-blind)
#0049BD
Tritanopia (blue-blind)
#145875
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512ec0;
/* rgb */ color: rgb(81, 46, 192);
/* oklch */ color: oklch(44.5% 0.210 285.0);
Tailwind
colors: {
  custom: {
    50: '#8e6bd4',
    500: '#512ec0',
    950: '#000000',
  },
}
SCSS
$custom: #512ec0;
$custom-light: #8e6bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#512ec0",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 192
  },
  "hsl": {
    "h": 254.384,
    "s": 61.345,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44526,
    "c": 0.2103,
    "h": 285
  },
  "luminance": 0.07509
}

Semantic roles & 50–950 ramp

primary
#512EC0
secondary
#B9CC7E
accent
#E443BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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