#512C95#512C95

#512C95 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.162 H 294.1°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#512C95
RGBrgb(81, 44, 149)
HSLhsl(261, 54%, 38%)
HSVhsv(261, 70%, 58%)
CMYKcmyk(45.6%, 70.5%, 0%, 41.6%)
CIE-LABlab(28.70, 41.14, -51.65)
CIE-LCHlch(28.70, 66.03, 308.54°)
OKLaboklab(40.34% 0.066 -0.1478)
OKLCHoklch(40.34% 0.162 294.1)
XYZxyz(9.7174, 5.7203, 29.0201)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512C95 #70952C
analogous
#2C3B95 #512C95 #852C95
triadic
#512C95 #95512C #2C9551
tetradic
#512C95 #952C3B #70952C #2C9585
square
#512C95 #952C3B #70952C #2C9585
split-complementary
#512C95 #95852C #3B952C
monochromatic
#1E1037 #371E66 #512C95 #6B3AC4 #8E69D3

Accessibility & contrast

On white

9.79
#512C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512C95
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512C95#FFFFFF#000000##FFFFFF
##512C951.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#3E465D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #512c95;
/* rgb */ color: rgb(81, 44, 149);
/* oklch */ color: oklch(40.3% 0.162 294.1);
Tailwind
colors: {
  custom: {
    50: '#8868b5',
    500: '#512c95',
    950: '#000000',
  },
}
SCSS
$custom: #512c95;
$custom-light: #8868b5;
$custom-dark: #000000;
JSON
{
  "hex": "#512c95",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 149
  },
  "hsl": {
    "h": 261.143,
    "s": 54.404,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4034,
    "c": 0.16189,
    "h": 294.1
  },
  "luminance": 0.05721
}

Semantic roles & 50–950 ramp

primary
#512C95
secondary
#9BB964
accent
#DE4AAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512C95

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

Preview Lab → · Contrast checker → · Palette generator →

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