#512EB4#512EB4

#512EB4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.196 H 287.0°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#512EB4
RGBrgb(81, 46, 180)
HSLhsl(256, 59%, 44%)
HSVhsv(256, 74%, 71%)
CMYKcmyk(55%, 74.4%, 0%, 29.4%)
CIE-LABlab(31.80, 48.94, -65.29)
CIE-LCHlch(31.80, 81.59, 306.86°)
OKLaboklab(43.39% 0.0575 -0.1878)
OKLCHoklch(43.39% 0.196 287)
XYZxyz(12.6061, 6.9979, 43.8577)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EB4 #91B42E
analogous
#2E4EB4 #512EB4 #942EB4
triadic
#512EB4 #B4512E #2EB451
tetradic
#512EB4 #B42E4E #91B42E #2EB494
square
#512EB4 #B42E4E #91B42E #2EB494
split-complementary
#512EB4 #B4942E #4EB42E
monochromatic
#251553 #3B2283 #512EB4 #704ED2 #977EDE

Accessibility & contrast

On white

8.75
#512EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#512EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512EB4
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EB4#FFFFFF#000000##FFFFFF
##512EB41.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#26536F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #512eb4;
/* rgb */ color: rgb(81, 46, 180);
/* oklch */ color: oklch(43.4% 0.196 287.0);
Tailwind
colors: {
  custom: {
    50: '#8c6bcc',
    500: '#512eb4',
    950: '#000000',
  },
}
SCSS
$custom: #512eb4;
$custom-light: #8c6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#512eb4",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 255.672,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43385,
    "c": 0.19644,
    "h": 287
  },
  "luminance": 0.06999
}

Semantic roles & 50–950 ramp

primary
#512EB4
secondary
#B2C777
accent
#E245B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #512EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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