#512D92#512D92

#512D92 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.157 H 294.7°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#512D92
RGBrgb(81, 45, 146)
HSLhsl(261, 53%, 37%)
HSVhsv(261, 69%, 57%)
CMYKcmyk(44.5%, 69.2%, 0%, 42.7%)
CIE-LABlab(28.65, 39.75, -49.89)
CIE-LCHlch(28.65, 63.79, 308.55°)
OKLaboklab(40.23% 0.0655 -0.1426)
OKLCHoklch(40.23% 0.157 294.7)
XYZxyz(9.5186, 5.7012, 27.7875)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512D92 #6E922D
analogous
#2D3B92 #512D92 #842D92
triadic
#512D92 #92512D #2D9251
tetradic
#512D92 #922D3B #6E922D #2D9284
square
#512D92 #922D3B #6E922D #2D9284
split-complementary
#512D92 #92842D #3B922D
monochromatic
#1D1034 #371F63 #512D92 #6B3BC1 #8E69D1

Accessibility & contrast

On white

9.81
#512D92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#512D92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512D92
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512D92#FFFFFF#000000##FFFFFF
##512D921.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004495
Deuteranopia (green-blind)
#004290
Tritanopia (blue-blind)
#3F465C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #512d92;
/* rgb */ color: rgb(81, 45, 146);
/* oklch */ color: oklch(40.2% 0.157 294.7);
Tailwind
colors: {
  custom: {
    50: '#8869b3',
    500: '#512d92',
    950: '#000000',
  },
}
SCSS
$custom: #512d92;
$custom-light: #8869b3;
$custom-dark: #000000;
JSON
{
  "hex": "#512d92",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 146
  },
  "hsl": {
    "h": 261.386,
    "s": 52.88,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40227,
    "c": 0.15694,
    "h": 294.7
  },
  "luminance": 0.05701
}

Semantic roles & 50–950 ramp

primary
#512D92
secondary
#99B763
accent
#DC4CA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512D92

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

Preview Lab → · Contrast checker → · Palette generator →

#512D92 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva