#512095#512095

#512095 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.176 H 296.1°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#512095
RGBrgb(81, 32, 149)
HSLhsl(265, 65%, 35%)
HSVhsv(265, 79%, 58%)
CMYKcmyk(45.6%, 78.5%, 0%, 41.6%)
CIE-LABlab(26.60, 47.06, -55.08)
CIE-LCHlch(26.60, 72.44, 310.52°)
OKLaboklab(38.86% 0.0773 -0.1578)
OKLCHoklch(38.86% 0.176 296.1)
XYZxyz(9.3332, 4.9521, 28.8920)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512095 #649520
analogous
#202A95 #512095 #8B2095
triadic
#512095 #955120 #209551
tetradic
#512095 #95202A #649520 #20958B
square
#512095 #95202A #649520 #20958B
split-complementary
#512095 #958B20 #2A9520
monochromatic
#1A0A30 #361563 #512095 #6C2BC7 #8D55DA

Accessibility & contrast

On white

10.55
#512095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#512095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512095
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512095#FFFFFF#000000##FFFFFF
##5120951.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003D93
Tritanopia (blue-blind)
#3E405A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512095;
/* rgb */ color: rgb(81, 32, 149);
/* oklch */ color: oklch(38.9% 0.176 296.1);
Tailwind
colors: {
  custom: {
    50: '#8961b5',
    500: '#512095',
    950: '#000000',
  },
}
SCSS
$custom: #512095;
$custom-light: #8961b5;
$custom-dark: #000000;
JSON
{
  "hex": "#512095",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 149
  },
  "hsl": {
    "h": 265.128,
    "s": 64.641,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38857,
    "c": 0.17569,
    "h": 296.1
  },
  "luminance": 0.04952
}

Semantic roles & 50–950 ramp

primary
#512095
secondary
#91BE53
accent
#E840A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512095

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

Preview Lab → · Contrast checker → · Palette generator →

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