#512EBF#512EBF

#512EBF is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.4% C 0.209 H 285.2°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#512EBF
RGBrgb(81, 46, 191)
HSLhsl(254, 61%, 46%)
HSVhsv(254, 76%, 75%)
CMYKcmyk(57.6%, 75.9%, 0%, 25.1%)
CIE-LABlab(32.84, 52.09, -70.09)
CIE-LCHlch(32.84, 87.33, 306.62°)
OKLaboklab(44.43% 0.0547 -0.2019)
OKLCHoklch(44.43% 0.209 285.2)
XYZxyz(13.7714, 7.4641, 49.9952)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EBF #9CBF2E
analogous
#2E54BF #512EBF #9A2EBF
triadic
#512EBF #BF512E #2EBF51
tetradic
#512EBF #BF2E54 #9CBF2E #2EBF9A
square
#512EBF #BF2E54 #9CBF2E #2EBF9A
split-complementary
#512EBF #BF9A2E #54BF2E
monochromatic
#27165C #3C228E #512EBF #7454D6 #9C86E2

Accessibility & contrast

On white

8.42
#512EBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#512EBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512EBF
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EBF#FFFFFF#000000##FFFFFF
##512EBF1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C3
Deuteranopia (green-blind)
#0049BC
Tritanopia (blue-blind)
#165775
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512ebf;
/* rgb */ color: rgb(81, 46, 191);
/* oklch */ color: oklch(44.4% 0.209 285.2);
Tailwind
colors: {
  custom: {
    50: '#8e6bd4',
    500: '#512ebf',
    950: '#000000',
  },
}
SCSS
$custom: #512ebf;
$custom-light: #8e6bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#512ebf",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 191
  },
  "hsl": {
    "h": 254.483,
    "s": 61.181,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4443,
    "c": 0.20915,
    "h": 285.2
  },
  "luminance": 0.07465
}

Semantic roles & 50–950 ramp

primary
#512EBF
secondary
#B8CB7E
accent
#E444BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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