#512E99#512E99

#512E99 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.164 H 292.7°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#512E99
RGBrgb(81, 46, 153)
HSLhsl(260, 54%, 39%)
HSVhsv(260, 70%, 60%)
CMYKcmyk(47.1%, 69.9%, 0%, 40%)
CIE-LABlab(29.42, 41.20, -52.92)
CIE-LCHlch(29.42, 67.06, 307.90°)
OKLaboklab(40.96% 0.0633 -0.1515)
OKLCHoklch(40.96% 0.164 292.7)
XYZxyz(10.1185, 6.0029, 30.7564)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512E99 #76992E
analogous
#2E4199 #512E99 #872E99
triadic
#512E99 #99512E #2E9951
tetradic
#512E99 #992E41 #76992E #2E9987
square
#512E99 #992E41 #76992E #2E9987
split-complementary
#512E99 #99872E #41992E
monochromatic
#1F123B #38206A #512E99 #6B3FC5 #8F6ED3

Accessibility & contrast

On white

9.54
#512E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#512E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512E99
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512E99#FFFFFF#000000##FFFFFF
##512E991.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#3B4960
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #512e99;
/* rgb */ color: rgb(81, 46, 153);
/* oklch */ color: oklch(41.0% 0.164 292.7);
Tailwind
colors: {
  custom: {
    50: '#8869b8',
    500: '#512e99',
    950: '#000000',
  },
}
SCSS
$custom: #512e99;
$custom-light: #8869b8;
$custom-dark: #000000;
JSON
{
  "hex": "#512e99",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 153
  },
  "hsl": {
    "h": 259.626,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40961,
    "c": 0.16423,
    "h": 292.7
  },
  "luminance": 0.06003
}

Semantic roles & 50–950 ramp

primary
#512E99
secondary
#A0BB68
accent
#DD4BAD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512E99

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

Preview Lab → · Contrast checker → · Palette generator →

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