#512EBC#512EBC

#512EBC is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.1% C 0.206 H 285.7°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#512EBC
RGBrgb(81, 46, 188)
HSLhsl(255, 61%, 46%)
HSVhsv(255, 76%, 74%)
CMYKcmyk(56.9%, 75.5%, 0%, 26.3%)
CIE-LABlab(32.55, 51.23, -68.79)
CIE-LCHlch(32.55, 85.77, 306.68°)
OKLaboklab(44.14% 0.0555 -0.1981)
OKLCHoklch(44.14% 0.206 285.7)
XYZxyz(13.4447, 7.3334, 48.2742)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EBC #99BC2E
analogous
#2E52BC #512EBC #982EBC
triadic
#512EBC #BC512E #2EBC51
tetradic
#512EBC #BC2E52 #99BC2E #2EBC98
square
#512EBC #BC2E52 #99BC2E #2EBC98
split-complementary
#512EBC #BC982E #52BC2E
monochromatic
#27165A #3C228B #512EBC #7352D5 #9B84E1

Accessibility & contrast

On white

8.51
#512EBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#512EBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512EBC
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EBC#FFFFFF#000000##FFFFFF
##512EBC1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C0
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#1C5673
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512ebc;
/* rgb */ color: rgb(81, 46, 188);
/* oklch */ color: oklch(44.1% 0.206 285.7);
Tailwind
colors: {
  custom: {
    50: '#8e6bd1',
    500: '#512ebc',
    950: '#000000',
  },
}
SCSS
$custom: #512ebc;
$custom-light: #8e6bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#512ebc",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 188
  },
  "hsl": {
    "h": 254.789,
    "s": 60.684,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44142,
    "c": 0.20571,
    "h": 285.7
  },
  "luminance": 0.07334
}

Semantic roles & 50–950 ramp

primary
#512EBC
secondary
#B7CA7C
accent
#E444BC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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