#512073#512073

#512073 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.138 H 307.9°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#512073
RGBrgb(81, 32, 115)
HSLhsl(275, 56%, 29%)
HSVhsv(275, 72%, 45%)
CMYKcmyk(29.6%, 72.2%, 0%, 54.9%)
CIE-LABlab(23.74, 38.33, -38.38)
CIE-LCHlch(23.74, 54.24, 314.97°)
OKLaboklab(35.95% 0.0847 -0.1087)
OKLCHoklch(35.95% 0.138 307.9)
XYZxyz(7.0037, 4.0203, 16.6234)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512073 #427320
analogous
#282073 #512073 #73206C
triadic
#512073 #735120 #207351
tetradic
#512073 #732820 #427320 #206C73
square
#512073 #732820 #427320 #206C73
split-complementary
#512073 #6C7320 #207328
monochromatic
#110718 #2F1343 #512073 #732DA3 #9343CB

Accessibility & contrast

On white

11.64
#512073 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#512073 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512073
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512073#FFFFFF#000000##FFFFFF
##5120731.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003775
Deuteranopia (green-blind)
#0C3971
Tritanopia (blue-blind)
#4C3247
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #512073;
/* rgb */ color: rgb(81, 32, 115);
/* oklch */ color: oklch(35.9% 0.138 307.9);
Tailwind
colors: {
  custom: {
    50: '#85609c',
    500: '#512073',
    950: '#000000',
  },
}
SCSS
$custom: #512073;
$custom-light: #85609c;
$custom-dark: #000000;
JSON
{
  "hex": "#512073",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 115
  },
  "hsl": {
    "h": 275.422,
    "s": 56.463,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35947,
    "c": 0.13787,
    "h": 307.9
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#512073
secondary
#6FA748
accent
#E04886
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512073

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

Preview Lab → · Contrast checker → · Palette generator →

#512073 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva