#512DBB#512DBB

#512DBB is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.9% C 0.206 H 285.9°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#512DBB
RGBrgb(81, 45, 187)
HSLhsl(255, 61%, 45%)
HSVhsv(255, 76%, 73%)
CMYKcmyk(56.7%, 75.9%, 0%, 26.7%)
CIE-LABlab(32.29, 51.44, -68.64)
CIE-LCHlch(32.29, 85.77, 306.85°)
OKLaboklab(43.93% 0.0565 -0.1976)
OKLCHoklch(43.93% 0.206 285.9)
XYZxyz(13.2987, 7.2132, 47.6956)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DBB #97BB2D
analogous
#2D50BB #512DBB #982DBB
triadic
#512DBB #BB512D #2DBB51
tetradic
#512DBB #BB2D50 #97BB2D #2DBB98
square
#512DBB #BB2D50 #97BB2D #2DBB98
split-complementary
#512DBB #BB982D #50BB2D
monochromatic
#261558 #3C218A #512DBB #7250D5 #9A82E1

Accessibility & contrast

On white

8.60
#512DBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#512DBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512DBB
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512DBB#FFFFFF#000000##FFFFFF
##512DBB1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BF
Deuteranopia (green-blind)
#0048B8
Tritanopia (blue-blind)
#1D5572
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #512dbb;
/* rgb */ color: rgb(81, 45, 187);
/* oklch */ color: oklch(43.9% 0.206 285.9);
Tailwind
colors: {
  custom: {
    50: '#8e6ad1',
    500: '#512dbb',
    950: '#000000',
  },
}
SCSS
$custom: #512dbb;
$custom-light: #8e6ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#512dbb",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 187
  },
  "hsl": {
    "h": 255.211,
    "s": 61.207,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43926,
    "c": 0.20554,
    "h": 285.9
  },
  "luminance": 0.07214
}

Semantic roles & 50–950 ramp

primary
#512DBB
secondary
#B6CA7A
accent
#E443BC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #512DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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