#512990#512990

#512990 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.160 H 296.0°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#512990
RGBrgb(81, 41, 144)
HSLhsl(263, 56%, 36%)
HSVhsv(263, 72%, 56%)
CMYKcmyk(43.8%, 71.5%, 0%, 43.5%)
CIE-LABlab(27.71, 41.34, -50.18)
CIE-LCHlch(27.71, 65.02, 309.48°)
OKLaboklab(39.5% 0.07 -0.1435)
OKLCHoklch(39.5% 0.16 296)
XYZxyz(9.2190, 5.3486, 26.9268)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512990 #689029
analogous
#293590 #512990 #852990
triadic
#512990 #905129 #299051
tetradic
#512990 #902935 #689029 #299085
square
#512990 #902935 #689029 #299085
split-complementary
#512990 #908529 #359029
monochromatic
#1B0E31 #361B60 #512990 #6C37C0 #8D61D2

Accessibility & contrast

On white

10.15
#512990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#512990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512990
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512990#FFFFFF#000000##FFFFFF
##5129901.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004293
Deuteranopia (green-blind)
#00408E
Tritanopia (blue-blind)
#404359
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512990;
/* rgb */ color: rgb(81, 41, 144);
/* oklch */ color: oklch(39.5% 0.160 296.0);
Tailwind
colors: {
  custom: {
    50: '#8866b1',
    500: '#512990',
    950: '#000000',
  },
}
SCSS
$custom: #512990;
$custom-light: #8866b1;
$custom-dark: #000000;
JSON
{
  "hex": "#512990",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 144
  },
  "hsl": {
    "h": 263.301,
    "s": 55.676,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39504,
    "c": 0.15967,
    "h": 296
  },
  "luminance": 0.05349
}

Semantic roles & 50–950 ramp

primary
#512990
secondary
#95B85D
accent
#DF49A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512990

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

Preview Lab → · Contrast checker → · Palette generator →

#512990 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva