#512982#512982

#512982 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.143 H 300.4°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#512982
RGBrgb(81, 41, 130)
HSLhsl(267, 52%, 34%)
HSVhsv(267, 68%, 51%)
CMYKcmyk(37.7%, 68.5%, 0%, 49%)
CIE-LABlab(26.58, 37.52, -43.29)
CIE-LCHlch(26.58, 57.29, 310.91°)
OKLaboklab(38.35% 0.0722 -0.1232)
OKLCHoklch(38.35% 0.143 300.4)
XYZxyz(8.2146, 4.9468, 21.6368)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512982 #5A8229
analogous
#292D82 #512982 #7D2982
triadic
#512982 #825129 #298251
tetradic
#512982 #82292D #5A8229 #29827D
square
#512982 #82292D #5A8229 #29827D
split-complementary
#512982 #827D29 #2D8229
monochromatic
#170C25 #341A53 #512982 #6E38B1 #8D5ACB

Accessibility & contrast

On white

10.56
#512982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#512982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512982
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512982#FFFFFF#000000##FFFFFF
##5129821.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#463D52
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512982;
/* rgb */ color: rgb(81, 41, 130);
/* oklch */ color: oklch(38.3% 0.143 300.4);
Tailwind
colors: {
  custom: {
    50: '#8666a7',
    500: '#512982',
    950: '#000000',
  },
}
SCSS
$custom: #512982;
$custom-light: #8666a7;
$custom-dark: #000000;
JSON
{
  "hex": "#512982",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 130
  },
  "hsl": {
    "h": 266.966,
    "s": 52.047,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38348,
    "c": 0.14283,
    "h": 300.4
  },
  "luminance": 0.04947
}

Semantic roles & 50–950 ramp

primary
#512982
secondary
#88B056
accent
#DB4C9B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #512982

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

Preview Lab → · Contrast checker → · Palette generator →

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