#512192#512192

#512192 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.171 H 296.8°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#512192
RGBrgb(81, 33, 146)
HSLhsl(265, 63%, 35%)
HSVhsv(265, 77%, 57%)
CMYKcmyk(44.5%, 77.4%, 0%, 42.7%)
CIE-LABlab(26.48, 45.82, -53.41)
CIE-LCHlch(26.48, 70.38, 310.63°)
OKLaboklab(38.69% 0.0772 -0.1529)
OKLCHoklch(38.69% 0.171 296.8)
XYZxyz(9.1241, 4.9122, 27.6560)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512192 #629221
analogous
#212992 #512192 #892192
triadic
#512192 #925121 #219251
tetradic
#512192 #922129 #629221 #219289
square
#512192 #922129 #629221 #219289
split-complementary
#512192 #928921 #299221
monochromatic
#1A0A2E #351660 #512192 #6D2CC4 #8D55D9

Accessibility & contrast

On white

10.59
#512192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#512192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512192
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512192#FFFFFF#000000##FFFFFF
##5121921.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512192;
/* rgb */ color: rgb(81, 33, 146);
/* oklch */ color: oklch(38.7% 0.171 296.8);
Tailwind
colors: {
  custom: {
    50: '#8962b3',
    500: '#512192',
    950: '#000000',
  },
}
SCSS
$custom: #512192;
$custom-light: #8962b3;
$custom-dark: #000000;
JSON
{
  "hex": "#512192",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 146
  },
  "hsl": {
    "h": 265.487,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38693,
    "c": 0.17132,
    "h": 296.8
  },
  "luminance": 0.04912
}

Semantic roles & 50–950 ramp

primary
#512192
secondary
#8FBC53
accent
#E642A0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512192

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

Preview Lab → · Contrast checker → · Palette generator →

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