#512BB0#512BB0

#512BB0 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.195 H 288.2°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#512BB0
RGBrgb(81, 43, 176)
HSLhsl(257, 61%, 43%)
HSVhsv(257, 76%, 69%)
CMYKcmyk(54%, 75.6%, 0%, 31%)
CIE-LABlab(30.90, 49.29, -64.38)
CIE-LCHlch(30.90, 81.08, 307.44°)
OKLaboklab(42.64% 0.0609 -0.1851)
OKLCHoklch(42.64% 0.195 288.2)
XYZxyz(12.0914, 6.6111, 41.7048)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BB0 #8AB02B
analogous
#2B47B0 #512BB0 #932BB0
triadic
#512BB0 #B0512B #2BB051
tetradic
#512BB0 #B02B47 #8AB02B #2BB093
square
#512BB0 #B02B47 #8AB02B #2BB093
split-complementary
#512BB0 #B0932B #47B02B
monochromatic
#24134E #3A1F7F #512BB0 #6E46D2 #9578DE

Accessibility & contrast

On white

9.04
#512BB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#512BB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512BB0
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BB0#FFFFFF#000000##FFFFFF
##512BB01.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#0045AE
Tritanopia (blue-blind)
#2B506C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #512bb0;
/* rgb */ color: rgb(81, 43, 176);
/* oklch */ color: oklch(42.6% 0.195 288.2);
Tailwind
colors: {
  custom: {
    50: '#8c69c9',
    500: '#512bb0',
    950: '#000000',
  },
}
SCSS
$custom: #512bb0;
$custom-light: #8c69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#512bb0",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 176
  },
  "hsl": {
    "h": 257.143,
    "s": 60.731,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4264,
    "c": 0.19489,
    "h": 288.2
  },
  "luminance": 0.06612
}

Semantic roles & 50–950 ramp

primary
#512BB0
secondary
#AEC671
accent
#E444B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #512BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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