#512BB3#512BB3

#512BB3 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.198 H 287.6°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#512BB3
RGBrgb(81, 43, 179)
HSLhsl(257, 61%, 44%)
HSVhsv(257, 76%, 70%)
CMYKcmyk(54.7%, 76%, 0%, 29.8%)
CIE-LABlab(31.19, 50.14, -65.70)
CIE-LCHlch(31.19, 82.65, 307.35°)
OKLaboklab(42.92% 0.0601 -0.189)
OKLCHoklch(42.92% 0.198 287.6)
XYZxyz(12.3915, 6.7311, 43.2854)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BB3 #8DB32B
analogous
#2B49B3 #512BB3 #952BB3
triadic
#512BB3 #B3512B #2BB351
tetradic
#512BB3 #B32B49 #8DB32B #2BB395
square
#512BB3 #B32B49 #8DB32B #2BB395
split-complementary
#512BB3 #B3952B #49B32B
monochromatic
#241350 #3B1F82 #512BB3 #6F48D3 #9679DF

Accessibility & contrast

On white

8.95
#512BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#512BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512BB3
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BB3#FFFFFF#000000##FFFFFF
##512BB31.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#28516D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #512bb3;
/* rgb */ color: rgb(81, 43, 179);
/* oklch */ color: oklch(42.9% 0.198 287.6);
Tailwind
colors: {
  custom: {
    50: '#8d69cb',
    500: '#512bb3',
    950: '#000000',
  },
}
SCSS
$custom: #512bb3;
$custom-light: #8d69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#512bb3",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 256.765,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42924,
    "c": 0.19835,
    "h": 287.6
  },
  "luminance": 0.06732
}

Semantic roles & 50–950 ramp

primary
#512BB3
secondary
#AFC773
accent
#E443B7
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #512BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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