#512CAB#512CAB

#512CAB is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.188 H 289.0°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#512CAB
RGBrgb(81, 44, 171)
HSLhsl(257, 59%, 42%)
HSVhsv(257, 74%, 67%)
CMYKcmyk(52.6%, 74.3%, 0%, 32.9%)
CIE-LABlab(30.62, 47.38, -61.85)
CIE-LCHlch(30.62, 77.92, 307.45°)
OKLaboklab(42.3% 0.0614 -0.1778)
OKLCHoklch(42.3% 0.188 289)
XYZxyz(11.6426, 6.4904, 39.1595)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CAB #86AB2C
analogous
#2C47AB #512CAB #902CAB
triadic
#512CAB #AB512C #2CAB51
tetradic
#512CAB #AB2C47 #86AB2C #2CAB90
square
#512CAB #AB2C47 #86AB2C #2CAB90
split-complementary
#512CAB #AB902C #47AB2C
monochromatic
#23134A #3A1F7A #512CAB #6D45CF #9376DC

Accessibility & contrast

On white

9.14
#512CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#512CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CAB
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CAB#FFFFFF#000000##FFFFFF
##512CAB1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#2F4E69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #512cab;
/* rgb */ color: rgb(81, 44, 171);
/* oklch */ color: oklch(42.3% 0.188 289.0);
Tailwind
colors: {
  custom: {
    50: '#8b69c5',
    500: '#512cab',
    950: '#000000',
  },
}
SCSS
$custom: #512cab;
$custom-light: #8b69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#512cab",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 257.48,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42297,
    "c": 0.18805,
    "h": 289
  },
  "luminance": 0.06491
}

Semantic roles & 50–950 ramp

primary
#512CAB
secondary
#ABC36F
accent
#E246B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #512CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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