#512773#512773

#512773 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.128 H 306.6°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#512773
RGBrgb(81, 39, 115)
HSLhsl(273, 49%, 30%)
HSVhsv(273, 66%, 45%)
CMYKcmyk(29.6%, 66.1%, 0%, 54.9%)
CIE-LABlab(25.07, 34.66, -36.23)
CIE-LCHlch(25.07, 50.14, 313.73°)
OKLaboklab(36.91% 0.0761 -0.1025)
OKLCHoklch(36.91% 0.128 306.6)
XYZxyz(7.2127, 4.4382, 16.6930)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512773 #497327
analogous
#2B2773 #512773 #73276F
triadic
#512773 #735127 #277351
tetradic
#512773 #732B27 #497327 #276F73
square
#512773 #732B27 #497327 #276F73
split-complementary
#512773 #6F7327 #27732B
monochromatic
#110818 #311845 #512773 #7136A1 #9051C4

Accessibility & contrast

On white

11.13
#512773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#512773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512773
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512773#FFFFFF#000000##FFFFFF
##5127731.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A75
Deuteranopia (green-blind)
#173C71
Tritanopia (blue-blind)
#4B3749
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #512773;
/* rgb */ color: rgb(81, 39, 115);
/* oklch */ color: oklch(36.9% 0.128 306.6);
Tailwind
colors: {
  custom: {
    50: '#85649c',
    500: '#512773',
    950: '#000000',
  },
}
SCSS
$custom: #512773;
$custom-light: #85649c;
$custom-dark: #000000;
JSON
{
  "hex": "#512773",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 115
  },
  "hsl": {
    "h": 273.158,
    "s": 49.351,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36905,
    "c": 0.12763,
    "h": 306.6
  },
  "luminance": 0.04438
}

Semantic roles & 50–950 ramp

primary
#512773
secondary
#76A550
accent
#D94F8D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #512773

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

Preview Lab → · Contrast checker → · Palette generator →

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