#512C90#512C90

#512C90 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.156 H 295.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#512C90
RGBrgb(81, 44, 144)
HSLhsl(262, 53%, 37%)
HSVhsv(262, 69%, 56%)
CMYKcmyk(43.8%, 69.4%, 0%, 43.5%)
CIE-LABlab(28.29, 39.74, -49.24)
CIE-LCHlch(28.29, 63.27, 308.90°)
OKLaboklab(39.92% 0.0669 -0.1407)
OKLCHoklch(39.92% 0.156 295.4)
XYZxyz(9.3267, 5.5641, 26.9627)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512C90 #6B902C
analogous
#2C3990 #512C90 #832C90
triadic
#512C90 #90512C #2C9051
tetradic
#512C90 #902C39 #6B902C #2C9083
square
#512C90 #902C39 #6B902C #2C9083
split-complementary
#512C90 #90832C #39902C
monochromatic
#1C0F32 #371E61 #512C90 #6B3ABF #8D66D0

Accessibility & contrast

On white

9.94
#512C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#512C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512C90
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512C90#FFFFFF#000000##FFFFFF
##512C901.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004393
Deuteranopia (green-blind)
#00418E
Tritanopia (blue-blind)
#40445A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #512c90;
/* rgb */ color: rgb(81, 44, 144);
/* oklch */ color: oklch(39.9% 0.156 295.4);
Tailwind
colors: {
  custom: {
    50: '#8768b1',
    500: '#512c90',
    950: '#000000',
  },
}
SCSS
$custom: #512c90;
$custom-light: #8768b1;
$custom-dark: #000000;
JSON
{
  "hex": "#512c90",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 144
  },
  "hsl": {
    "h": 262.2,
    "s": 53.191,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39918,
    "c": 0.15581,
    "h": 295.4
  },
  "luminance": 0.05564
}

Semantic roles & 50–950 ramp

primary
#512C90
secondary
#97B761
accent
#DD4BA7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512C90

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

Preview Lab → · Contrast checker → · Palette generator →

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