#512BC4#512BC4

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

Color values

HEX#512BC4
RGBrgb(81, 43, 196)
HSLhsl(255, 64%, 47%)
HSVhsv(255, 78%, 77%)
CMYKcmyk(58.7%, 78.1%, 0%, 23.1%)
CIE-LABlab(32.84, 54.92, -73.03)
CIE-LCHlch(32.84, 91.38, 306.94°)
OKLaboklab(44.57% 0.0553 -0.2104)
OKLCHoklch(44.57% 0.218 284.7)
XYZxyz(14.2180, 7.4617, 52.9049)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BC4 #9EC42B
analogous
#2B52C4 #512BC4 #9E2BC4
triadic
#512BC4 #C4512B #2BC451
tetradic
#512BC4 #C42B52 #9EC42B #2BC49E
square
#512BC4 #C42B52 #9EC42B #2BC49E
split-complementary
#512BC4 #C49E2B #52C42B
monochromatic
#281560 #3C2092 #512BC4 #7453D9 #9D85E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512BC4#FFFFFF#000000##FFFFFF
##512BC41.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)
#0051C8
Deuteranopia (green-blind)
#0048C1
Tritanopia (blue-blind)
#095877
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512bc4;
/* rgb */ color: rgb(81, 43, 196);
/* oklch */ color: oklch(44.6% 0.218 284.7);
Tailwind
colors: {
  custom: {
    50: '#8f6ad7',
    500: '#512bc4',
    950: '#000000',
  },
}
SCSS
$custom: #512bc4;
$custom-light: #8f6ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#512bc4",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 196
  },
  "hsl": {
    "h": 254.902,
    "s": 64.017,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44573,
    "c": 0.21759,
    "h": 284.7
  },
  "luminance": 0.07463
}

Semantic roles & 50–950 ramp

primary
#512BC4
secondary
#BACE7D
accent
#E741BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #512BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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