#512C99#512C99

#512C99 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.167 H 293.1°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#512C99
RGBrgb(81, 44, 153)
HSLhsl(260, 55%, 39%)
HSVhsv(260, 71%, 60%)
CMYKcmyk(47.1%, 71.2%, 0%, 40%)
CIE-LABlab(29.03, 42.27, -53.55)
CIE-LCHlch(29.03, 68.22, 308.29°)
OKLaboklab(40.68% 0.0653 -0.1534)
OKLCHoklch(40.68% 0.167 293.1)
XYZxyz(10.0422, 5.8503, 30.7309)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512C99 #74992C
analogous
#2C3D99 #512C99 #872C99
triadic
#512C99 #99512C #2C9951
tetradic
#512C99 #992C3D #74992C #2C9987
square
#512C99 #992C3D #74992C #2C9987
split-complementary
#512C99 #99872C #3D992C
monochromatic
#1F113A #381E69 #512C99 #6B3BC7 #8F6BD4

Accessibility & contrast

On white

9.68
#512C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#512C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512C99
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512C99#FFFFFF#000000##FFFFFF
##512C991.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#3B485F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #512c99;
/* rgb */ color: rgb(81, 44, 153);
/* oklch */ color: oklch(40.7% 0.167 293.1);
Tailwind
colors: {
  custom: {
    50: '#8968b8',
    500: '#512c99',
    950: '#000000',
  },
}
SCSS
$custom: #512c99;
$custom-light: #8968b8;
$custom-dark: #000000;
JSON
{
  "hex": "#512c99",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 153
  },
  "hsl": {
    "h": 260.367,
    "s": 55.33,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40684,
    "c": 0.16672,
    "h": 293.1
  },
  "luminance": 0.05851
}

Semantic roles & 50–950 ramp

primary
#512C99
secondary
#9EBB66
accent
#DF49AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512C99

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

Preview Lab → · Contrast checker → · Palette generator →

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