#512CBA#512CBA

#512CBA is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.7% C 0.205 H 286.2°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#512CBA
RGBrgb(81, 44, 186)
HSLhsl(256, 62%, 45%)
HSVhsv(256, 76%, 73%)
CMYKcmyk(56.5%, 76.3%, 0%, 27.1%)
CIE-LABlab(32.02, 51.64, -68.48)
CIE-LCHlch(32.02, 85.77, 307.02°)
OKLaboklab(43.71% 0.0575 -0.1972)
OKLCHoklch(43.71% 0.205 286.2)
XYZxyz(13.1543, 7.0951, 47.1212)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CBA #95BA2C
analogous
#2C4EBA #512CBA #982CBA
triadic
#512CBA #BA512C #2CBA51
tetradic
#512CBA #BA2C4E #95BA2C #2CBA98
square
#512CBA #BA2C4E #95BA2C #2CBA98
split-complementary
#512CBA #BA982C #4EBA2C
monochromatic
#261557 #3B2089 #512CBA #714ED5 #9980E1

Accessibility & contrast

On white

8.68
#512CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#512CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CBA
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CBA#FFFFFF#000000##FFFFFF
##512CBA1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0047B7
Tritanopia (blue-blind)
#1F5472
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #512cba;
/* rgb */ color: rgb(81, 44, 186);
/* oklch */ color: oklch(43.7% 0.205 286.2);
Tailwind
colors: {
  custom: {
    50: '#8e6ad0',
    500: '#512cba',
    950: '#000000',
  },
}
SCSS
$custom: #512cba;
$custom-light: #8e6ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#512cba",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 255.634,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43711,
    "c": 0.20537,
    "h": 286.2
  },
  "luminance": 0.07096
}

Semantic roles & 50–950 ramp

primary
#512CBA
secondary
#B4CA78
accent
#E543BB
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #512CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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