#512CBB#512CBB

#512CBB is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.8% C 0.207 H 286.1°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#512CBB
RGBrgb(81, 44, 187)
HSLhsl(256, 62%, 45%)
HSVhsv(256, 76%, 73%)
CMYKcmyk(56.7%, 76.5%, 0%, 26.7%)
CIE-LABlab(32.12, 51.92, -68.92)
CIE-LCHlch(32.12, 86.29, 306.99°)
OKLaboklab(43.81% 0.0572 -0.1984)
OKLCHoklch(43.81% 0.207 286.1)
XYZxyz(13.2610, 7.1378, 47.6830)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CBB #96BB2C
analogous
#2C4FBB #512CBB #982CBB
triadic
#512CBB #BB512C #2CBB51
tetradic
#512CBB #BB2C4F #96BB2C #2CBB98
square
#512CBB #BB2C4F #96BB2C #2CBB98
split-complementary
#512CBB #BB982C #4FBB2C
monochromatic
#261558 #3C2089 #512CBB #724FD6 #9980E1

Accessibility & contrast

On white

8.65
#512CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#512CBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CBB
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CBB#FFFFFF#000000##FFFFFF
##512CBB1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBF
Deuteranopia (green-blind)
#0047B8
Tritanopia (blue-blind)
#1D5572
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #512cbb;
/* rgb */ color: rgb(81, 44, 187);
/* oklch */ color: oklch(43.8% 0.207 286.1);
Tailwind
colors: {
  custom: {
    50: '#8e6ad1',
    500: '#512cbb',
    950: '#000000',
  },
}
SCSS
$custom: #512cbb;
$custom-light: #8e6ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#512cbb",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 187
  },
  "hsl": {
    "h": 255.524,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43808,
    "c": 0.20651,
    "h": 286.1
  },
  "luminance": 0.07139
}

Semantic roles & 50–950 ramp

primary
#512CBB
secondary
#B5CA79
accent
#E543BB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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