#512EBD#512EBD

#512EBD is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.2% C 0.207 H 285.5°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#512EBD
RGBrgb(81, 46, 189)
HSLhsl(255, 61%, 46%)
HSVhsv(255, 76%, 74%)
CMYKcmyk(57.1%, 75.7%, 0%, 25.9%)
CIE-LABlab(32.65, 51.52, -69.22)
CIE-LCHlch(32.65, 86.29, 306.66°)
OKLaboklab(44.24% 0.0552 -0.1993)
OKLCHoklch(44.24% 0.207 285.5)
XYZxyz(13.5529, 7.3766, 48.8439)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EBD #9ABD2E
analogous
#2E53BD #512EBD #982EBD
triadic
#512EBD #BD512E #2EBD51
tetradic
#512EBD #BD2E53 #9ABD2E #2EBD98
square
#512EBD #BD2E53 #9ABD2E #2EBD98
split-complementary
#512EBD #BD982E #53BD2E
monochromatic
#27165B #3C228C #512EBD #7353D5 #9B84E1

Accessibility & contrast

On white

8.48
#512EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#512EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512EBD
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EBD#FFFFFF#000000##FFFFFF
##512EBD1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C1
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#1A5674
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512ebd;
/* rgb */ color: rgb(81, 46, 189);
/* oklch */ color: oklch(44.2% 0.207 285.5);
Tailwind
colors: {
  custom: {
    50: '#8e6bd2',
    500: '#512ebd',
    950: '#000000',
  },
}
SCSS
$custom: #512ebd;
$custom-light: #8e6bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#512ebd",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 189
  },
  "hsl": {
    "h": 254.685,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44238,
    "c": 0.20686,
    "h": 285.5
  },
  "luminance": 0.07377
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #512EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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