#512EBA#512EBA

#512EBA is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.0% C 0.203 H 286.0°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#512EBA
RGBrgb(81, 46, 186)
HSLhsl(255, 60%, 45%)
HSVhsv(255, 75%, 73%)
CMYKcmyk(56.5%, 75.3%, 0%, 27.1%)
CIE-LABlab(32.36, 50.66, -67.92)
CIE-LCHlch(32.36, 84.73, 306.72°)
OKLaboklab(43.95% 0.056 -0.1955)
OKLCHoklch(43.95% 0.203 286)
XYZxyz(13.2306, 7.2477, 47.1466)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EBA #97BA2E
analogous
#2E51BA #512EBA #972EBA
triadic
#512EBA #BA512E #2EBA51
tetradic
#512EBA #BA2E51 #97BA2E #2EBA97
square
#512EBA #BA2E51 #97BA2E #2EBA97
split-complementary
#512EBA #BA972E #51BA2E
monochromatic
#261658 #3C2289 #512EBA #7251D4 #9A82E0

Accessibility & contrast

On white

8.57
#512EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#512EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512EBA
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EBA#FFFFFF#000000##FFFFFF
##512EBA1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BE
Deuteranopia (green-blind)
#0048B7
Tritanopia (blue-blind)
#1F5572
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #512eba;
/* rgb */ color: rgb(81, 46, 186);
/* oklch */ color: oklch(44.0% 0.203 286.0);
Tailwind
colors: {
  custom: {
    50: '#8d6bd0',
    500: '#512eba',
    950: '#000000',
  },
}
SCSS
$custom: #512eba;
$custom-light: #8d6bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#512eba",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 255,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43951,
    "c": 0.20341,
    "h": 286
  },
  "luminance": 0.07248
}

Semantic roles & 50–950 ramp

primary
#512EBA
secondary
#B6C97B
accent
#E344BC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #512EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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