#512AB0#512AB0

#512AB0 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.196 H 288.3°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#512AB0
RGBrgb(81, 42, 176)
HSLhsl(257, 61%, 43%)
HSVhsv(257, 76%, 69%)
CMYKcmyk(54%, 76.1%, 0%, 31%)
CIE-LABlab(30.73, 49.78, -64.66)
CIE-LCHlch(30.73, 81.60, 307.59°)
OKLaboklab(42.52% 0.0617 -0.186)
OKLCHoklch(42.52% 0.196 288.3)
XYZxyz(12.0555, 6.5393, 41.6929)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512AB0 #89B02A
analogous
#2A46B0 #512AB0 #942AB0
triadic
#512AB0 #B0512A #2AB051
tetradic
#512AB0 #B02A46 #89B02A #2AB094
square
#512AB0 #B02A46 #89B02A #2AB094
split-complementary
#512AB0 #B0942A #46B02A
monochromatic
#24124D #3A1E7F #512AB0 #6E45D3 #9476DE

Accessibility & contrast

On white

9.10
#512AB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#512AB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512AB0
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512AB0#FFFFFF#000000##FFFFFF
##512AB01.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB4
Deuteranopia (green-blind)
#0045AE
Tritanopia (blue-blind)
#2B4F6B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #512ab0;
/* rgb */ color: rgb(81, 42, 176);
/* oklch */ color: oklch(42.5% 0.196 288.3);
Tailwind
colors: {
  custom: {
    50: '#8c68c9',
    500: '#512ab0',
    950: '#000000',
  },
}
SCSS
$custom: #512ab0;
$custom-light: #8c68c9;
$custom-dark: #000000;
JSON
{
  "hex": "#512ab0",
  "rgb": {
    "r": 81,
    "g": 42,
    "b": 176
  },
  "hsl": {
    "h": 257.463,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4252,
    "c": 0.19591,
    "h": 288.3
  },
  "luminance": 0.0654
}

Semantic roles & 50–950 ramp

primary
#512AB0
secondary
#ADC670
accent
#E543B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #512AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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