#512B73#512B73

#512B73 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.5% C 0.121 H 305.7°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#512B73
RGBrgb(81, 43, 115)
HSLhsl(272, 46%, 31%)
HSVhsv(272, 63%, 45%)
CMYKcmyk(29.6%, 62.6%, 0%, 54.9%)
CIE-LABlab(25.91, 32.40, -34.89)
CIE-LCHlch(25.91, 47.61, 312.88°)
OKLaboklab(37.51% 0.0707 -0.0985)
OKLCHoklch(37.51% 0.121 305.7)
XYZxyz(7.3511, 4.7149, 16.7391)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512B73 #4D732B
analogous
#2D2B73 #512B73 #732B71
triadic
#512B73 #73512B #2B7351
tetradic
#512B73 #732D2B #4D732B #2B7173
square
#512B73 #732D2B #4D732B #2B7173
split-complementary
#512B73 #71732B #2B732D
monochromatic
#120A1A #321A46 #512B73 #703CA0 #8F58C1

Accessibility & contrast

On white

10.81
#512B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#512B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512B73
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512B73#FFFFFF#000000##FFFFFF
##512B731.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093C75
Deuteranopia (green-blind)
#1C3E71
Tritanopia (blue-blind)
#4B394A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #512b73;
/* rgb */ color: rgb(81, 43, 115);
/* oklch */ color: oklch(37.5% 0.121 305.7);
Tailwind
colors: {
  custom: {
    50: '#85669c',
    500: '#512b73',
    950: '#000000',
  },
}
SCSS
$custom: #512b73;
$custom-light: #85669c;
$custom-dark: #000000;
JSON
{
  "hex": "#512b73",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 115
  },
  "hsl": {
    "h": 271.667,
    "s": 45.57,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37512,
    "c": 0.12131,
    "h": 305.7
  },
  "luminance": 0.04715
}

Semantic roles & 50–950 ramp

primary
#512B73
secondary
#7BA555
accent
#D55390
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #512B73

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

Preview Lab → · Contrast checker → · Palette generator →

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