#512099#512099

#512099 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.180 H 295.0°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#512099
RGBrgb(81, 32, 153)
HSLhsl(264, 65%, 36%)
HSVhsv(264, 79%, 60%)
CMYKcmyk(47.1%, 79.1%, 0%, 40%)
CIE-LABlab(26.97, 48.12, -56.93)
CIE-LCHlch(26.97, 74.54, 310.21°)
OKLaboklab(39.23% 0.0761 -0.1632)
OKLCHoklch(39.23% 0.18 295)
XYZxyz(9.6581, 5.0820, 30.6029)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512099 #689920
analogous
#202B99 #512099 #8E2099
triadic
#512099 #995120 #209951
tetradic
#512099 #99202B #689920 #20998E
square
#512099 #99202B #689920 #20998E
split-complementary
#512099 #998E20 #2B9920
monochromatic
#1B0B34 #361566 #512099 #6C2BCC #8D57DC

Accessibility & contrast

On white

10.41
#512099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#512099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512099
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512099#FFFFFF#000000##FFFFFF
##5120991.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003E97
Tritanopia (blue-blind)
#3C425C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512099;
/* rgb */ color: rgb(81, 32, 153);
/* oklch */ color: oklch(39.2% 0.180 295.0);
Tailwind
colors: {
  custom: {
    50: '#8962b8',
    500: '#512099',
    950: '#000000',
  },
}
SCSS
$custom: #512099;
$custom-light: #8962b8;
$custom-dark: #000000;
JSON
{
  "hex": "#512099",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 264.298,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39228,
    "c": 0.18009,
    "h": 295
  },
  "luminance": 0.05082
}

Semantic roles & 50–950 ramp

primary
#512099
secondary
#95C055
accent
#E83FA4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512099

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

Preview Lab → · Contrast checker → · Palette generator →

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