#512992#512992

#512992 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.162 H 295.5°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#512992
RGBrgb(81, 41, 146)
HSLhsl(263, 56%, 37%)
HSVhsv(263, 72%, 57%)
CMYKcmyk(44.5%, 71.9%, 0%, 42.7%)
CIE-LABlab(27.87, 41.90, -51.14)
CIE-LCHlch(27.87, 66.11, 309.32°)
OKLaboklab(39.68% 0.0697 -0.1463)
OKLCHoklch(39.68% 0.162 295.5)
XYZxyz(9.3732, 5.4103, 27.7390)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512992 #6A9229
analogous
#293692 #512992 #862992
triadic
#512992 #925129 #299251
tetradic
#512992 #922936 #6A9229 #299286
square
#512992 #922936 #6A9229 #299286
split-complementary
#512992 #928629 #369229
monochromatic
#1C0E32 #361C62 #512992 #6C36C2 #8D62D3

Accessibility & contrast

On white

10.09
#512992 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#512992 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512992
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512992#FFFFFF#000000##FFFFFF
##5129921.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004395
Deuteranopia (green-blind)
#004090
Tritanopia (blue-blind)
#3F435A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512992;
/* rgb */ color: rgb(81, 41, 146);
/* oklch */ color: oklch(39.7% 0.162 295.5);
Tailwind
colors: {
  custom: {
    50: '#8866b3',
    500: '#512992',
    950: '#000000',
  },
}
SCSS
$custom: #512992;
$custom-light: #8866b3;
$custom-dark: #000000;
JSON
{
  "hex": "#512992",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 146
  },
  "hsl": {
    "h": 262.857,
    "s": 56.15,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39676,
    "c": 0.16204,
    "h": 295.5
  },
  "luminance": 0.05411
}

Semantic roles & 50–950 ramp

primary
#512992
secondary
#96B95E
accent
#DF48A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512992

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

Preview Lab → · Contrast checker → · Palette generator →

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