#512BC3#512BC3

#512BC3 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.5% C 0.216 H 284.9°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#512BC3
RGBrgb(81, 43, 195)
HSLhsl(255, 64%, 47%)
HSVhsv(255, 78%, 76%)
CMYKcmyk(58.5%, 77.9%, 0%, 23.5%)
CIE-LABlab(32.74, 54.64, -72.61)
CIE-LCHlch(32.74, 90.87, 306.96°)
OKLaboklab(44.47% 0.0556 -0.2092)
OKLCHoklch(44.47% 0.216 284.9)
XYZxyz(14.1045, 7.4163, 52.3074)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BC3 #9DC32B
analogous
#2B51C3 #512BC3 #9D2BC3
triadic
#512BC3 #C3512B #2BC351
tetradic
#512BC3 #C32B51 #9DC32B #2BC39D
square
#512BC3 #C32B51 #9DC32B #2BC39D
split-complementary
#512BC3 #C39D2B #51C32B
monochromatic
#27155F #3C2091 #512BC3 #7452D9 #9C84E4

Accessibility & contrast

On white

8.46
#512BC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512BC3
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BC3#FFFFFF#000000##FFFFFF
##512BC31.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C7
Deuteranopia (green-blind)
#0048C0
Tritanopia (blue-blind)
#0D5877
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512bc3;
/* rgb */ color: rgb(81, 43, 195);
/* oklch */ color: oklch(44.5% 0.216 284.9);
Tailwind
colors: {
  custom: {
    50: '#8f6ad6',
    500: '#512bc3',
    950: '#000000',
  },
}
SCSS
$custom: #512bc3;
$custom-light: #8f6ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#512bc3",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 195
  },
  "hsl": {
    "h": 255,
    "s": 63.866,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44474,
    "c": 0.21648,
    "h": 284.9
  },
  "luminance": 0.07417
}

Semantic roles & 50–950 ramp

primary
#512BC3
secondary
#B9CD7D
accent
#E741BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #512BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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