#512BB6#512BB6

#512BB6 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.2% C 0.202 H 287.1°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#512BB6
RGBrgb(81, 43, 182)
HSLhsl(256, 62%, 44%)
HSVhsv(256, 76%, 71%)
CMYKcmyk(55.5%, 76.4%, 0%, 28.6%)
CIE-LABlab(31.47, 50.99, -67.02)
CIE-LCHlch(31.47, 84.21, 307.26°)
OKLaboklab(43.21% 0.0593 -0.1929)
OKLCHoklch(43.21% 0.202 287.1)
XYZxyz(12.6982, 6.8538, 44.9007)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BB6 #90B62B
analogous
#2B4BB6 #512BB6 #972BB6
triadic
#512BB6 #B6512B #2BB651
tetradic
#512BB6 #B62B4B #90B62B #2BB697
square
#512BB6 #B62B4B #90B62B #2BB697
split-complementary
#512BB6 #B6972B #4BB62B
monochromatic
#251453 #3B1F84 #512BB6 #704AD4 #977BE0

Accessibility & contrast

On white

8.86
#512BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#512BB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512BB6
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BB6#FFFFFF#000000##FFFFFF
##512BB61.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBA
Deuteranopia (green-blind)
#0046B3
Tritanopia (blue-blind)
#24526F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #512bb6;
/* rgb */ color: rgb(81, 43, 182);
/* oklch */ color: oklch(43.2% 0.202 287.1);
Tailwind
colors: {
  custom: {
    50: '#8d69cd',
    500: '#512bb6',
    950: '#000000',
  },
}
SCSS
$custom: #512bb6;
$custom-light: #8d69cd;
$custom-dark: #000000;
JSON
{
  "hex": "#512bb6",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 256.403,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4321,
    "c": 0.20177,
    "h": 287.1
  },
  "luminance": 0.06854
}

Semantic roles & 50–950 ramp

primary
#512BB6
secondary
#B1C875
accent
#E543B9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #512BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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