#512CBD#512CBD

#512CBD is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.0% C 0.209 H 285.7°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#512CBD
RGBrgb(81, 44, 189)
HSLhsl(255, 62%, 46%)
HSVhsv(255, 77%, 74%)
CMYKcmyk(57.1%, 76.7%, 0%, 25.9%)
CIE-LABlab(32.31, 52.49, -69.78)
CIE-LCHlch(32.31, 87.32, 306.95°)
OKLaboklab(44% 0.0566 -0.201)
OKLCHoklch(44% 0.209 285.7)
XYZxyz(13.4766, 7.2240, 48.8185)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CBD #98BD2C
analogous
#2C50BD #512CBD #992CBD
triadic
#512CBD #BD512C #2CBD51
tetradic
#512CBD #BD2C50 #98BD2C #2CBD99
square
#512CBD #BD2C50 #98BD2C #2CBD99
split-complementary
#512CBD #BD992C #50BD2C
monochromatic
#26155A #3C208B #512CBD #7250D6 #9A82E2

Accessibility & contrast

On white

8.59
#512CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512CBD
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CBD#FFFFFF#000000##FFFFFF
##512CBD1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C1
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#1A5673
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #512cbd;
/* rgb */ color: rgb(81, 44, 189);
/* oklch */ color: oklch(44.0% 0.209 285.7);
Tailwind
colors: {
  custom: {
    50: '#8e6ad2',
    500: '#512cbd',
    950: '#000000',
  },
}
SCSS
$custom: #512cbd;
$custom-light: #8e6ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#512cbd",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 255.31,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44001,
    "c": 0.20879,
    "h": 285.7
  },
  "luminance": 0.07225
}

Semantic roles & 50–950 ramp

primary
#512CBD
secondary
#B6CB7A
accent
#E542BC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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