#512C80#512C80

#512C80 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.136 H 300.4°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#512C80
RGBrgb(81, 44, 128)
HSLhsl(266, 49%, 34%)
HSVhsv(266, 66%, 50%)
CMYKcmyk(36.7%, 65.6%, 0%, 49.8%)
CIE-LABlab(27.04, 35.31, -41.29)
CIE-LCHlch(27.04, 54.33, 310.53°)
OKLaboklab(38.63% 0.0688 -0.1174)
OKLCHoklch(38.63% 0.136 300.4)
XYZxyz(8.1894, 5.1091, 20.9726)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512C80 #5B802C
analogous
#2C3180 #512C80 #7B2C80
triadic
#512C80 #80512C #2C8051
tetradic
#512C80 #802C31 #5B802C #2C807B
square
#512C80 #802C31 #5B802C #2C807B
split-complementary
#512C80 #807B2C #31802C
monochromatic
#170D25 #341C52 #512C80 #6E3CAE #8D5FC8

Accessibility & contrast

On white

10.39
#512C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#512C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512C80
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512C80#FFFFFF#000000##FFFFFF
##512C801.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#093F7E
Tritanopia (blue-blind)
#473E52
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512c80;
/* rgb */ color: rgb(81, 44, 128);
/* oklch */ color: oklch(38.6% 0.136 300.4);
Tailwind
colors: {
  custom: {
    50: '#8667a5',
    500: '#512c80',
    950: '#000000',
  },
}
SCSS
$custom: #512c80;
$custom-light: #8667a5;
$custom-dark: #000000;
JSON
{
  "hex": "#512c80",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 128
  },
  "hsl": {
    "h": 266.429,
    "s": 48.837,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38633,
    "c": 0.13604,
    "h": 300.4
  },
  "luminance": 0.05109
}

Semantic roles & 50–950 ramp

primary
#512C80
secondary
#89AE5A
accent
#D84F9C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #512C80

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

Preview Lab → · Contrast checker → · Palette generator →

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