#512082#512082

#512082 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.155 H 302.1°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#512082
RGBrgb(81, 32, 130)
HSLhsl(270, 60%, 32%)
HSVhsv(270, 75%, 51%)
CMYKcmyk(37.7%, 75.4%, 0%, 49%)
CIE-LABlab(24.93, 42.12, -45.97)
CIE-LCHlch(24.93, 62.35, 312.50°)
OKLaboklab(37.17% 0.0821 -0.1311)
OKLCHoklch(37.17% 0.155 302.1)
XYZxyz(7.9381, 4.3940, 21.5447)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512082 #518220
analogous
#202082 #512082 #822082
triadic
#512082 #825120 #208251
tetradic
#512082 #822020 #518220 #208282
square
#512082 #822020 #518220 #208282
split-complementary
#512082 #828220 #208220
monochromatic
#140820 #321451 #512082 #702CB3 #8E4AD2

Accessibility & contrast

On white

11.18
#512082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#512082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512082
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512082#FFFFFF#000000##FFFFFF
##5120821.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#47384F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #512082;
/* rgb */ color: rgb(81, 32, 130);
/* oklch */ color: oklch(37.2% 0.155 302.1);
Tailwind
colors: {
  custom: {
    50: '#8760a7',
    500: '#512082',
    950: '#000000',
  },
}
SCSS
$custom: #512082;
$custom-light: #8760a7;
$custom-dark: #000000;
JSON
{
  "hex": "#512082",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 270,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37173,
    "c": 0.15465,
    "h": 302.1
  },
  "luminance": 0.04394
}

Semantic roles & 50–950 ramp

primary
#512082
secondary
#7FB549
accent
#E44494
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #512082

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

Preview Lab → · Contrast checker → · Palette generator →

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