#512092#512092

#512092 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.172 H 296.9°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#512092
RGBrgb(81, 32, 146)
HSLhsl(266, 64%, 35%)
HSVhsv(266, 78%, 57%)
CMYKcmyk(44.5%, 78.1%, 0%, 42.7%)
CIE-LABlab(26.32, 46.28, -53.67)
CIE-LCHlch(26.32, 70.87, 310.77°)
OKLaboklab(38.58% 0.0781 -0.1537)
OKLCHoklch(38.58% 0.172 296.9)
XYZxyz(9.0968, 4.8575, 27.6469)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512092 #619220
analogous
#202892 #512092 #8A2092
triadic
#512092 #925120 #209251
tetradic
#512092 #922028 #619220 #20928A
square
#512092 #922028 #619220 #20928A
split-complementary
#512092 #928A20 #289220
monochromatic
#190A2E #351560 #512092 #6D2BC4 #8D53D9

Accessibility & contrast

On white

10.65
#512092 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#512092 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512092
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512092#FFFFFF#000000##FFFFFF
##5120921.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F95
Deuteranopia (green-blind)
#003D90
Tritanopia (blue-blind)
#403F58
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #512092;
/* rgb */ color: rgb(81, 32, 146);
/* oklch */ color: oklch(38.6% 0.172 296.9);
Tailwind
colors: {
  custom: {
    50: '#8961b3',
    500: '#512092',
    950: '#000000',
  },
}
SCSS
$custom: #512092;
$custom-light: #8961b3;
$custom-dark: #000000;
JSON
{
  "hex": "#512092",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 146
  },
  "hsl": {
    "h": 265.789,
    "s": 64.045,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38583,
    "c": 0.17239,
    "h": 296.9
  },
  "luminance": 0.04858
}

Semantic roles & 50–950 ramp

primary
#512092
secondary
#8EBD51
accent
#E741A0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512092

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

Preview Lab → · Contrast checker → · Palette generator →

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