#512592#512592

#512592 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.167 H 296.2°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#512592
RGBrgb(81, 37, 146)
HSLhsl(264, 60%, 36%)
HSVhsv(264, 75%, 57%)
CMYKcmyk(44.5%, 74.7%, 0%, 42.7%)
CIE-LABlab(27.15, 43.92, -52.32)
CIE-LCHlch(27.15, 68.31, 310.01°)
OKLaboklab(39.16% 0.0736 -0.1497)
OKLCHoklch(39.16% 0.167 296.2)
XYZxyz(9.2418, 5.1476, 27.6952)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512592 #669225
analogous
#252F92 #512592 #872592
triadic
#512592 #925125 #259251
tetradic
#512592 #92252F #669225 #259287
square
#512592 #92252F #669225 #259287
split-complementary
#512592 #928725 #2F9225
monochromatic
#1B0C30 #361961 #512592 #6C31C3 #8D5CD6

Accessibility & contrast

On white

10.35
#512592 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#512592 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512592
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512592#FFFFFF#000000##FFFFFF
##5125921.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#003F90
Tritanopia (blue-blind)
#404159
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512592;
/* rgb */ color: rgb(81, 37, 146);
/* oklch */ color: oklch(39.2% 0.167 296.2);
Tailwind
colors: {
  custom: {
    50: '#8864b3',
    500: '#512592',
    950: '#000000',
  },
}
SCSS
$custom: #512592;
$custom-light: #8864b3;
$custom-dark: #000000;
JSON
{
  "hex": "#512592",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 146
  },
  "hsl": {
    "h": 264.22,
    "s": 59.563,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39164,
    "c": 0.16685,
    "h": 296.2
  },
  "luminance": 0.05148
}

Semantic roles & 50–950 ramp

primary
#512592
secondary
#93BA58
accent
#E345A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512592

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

Preview Lab → · Contrast checker → · Palette generator →

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