#511982#511982

#511982 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.162 H 303.1°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#511982
RGBrgb(81, 25, 130)
HSLhsl(272, 68%, 30%)
HSVhsv(272, 81%, 51%)
CMYKcmyk(37.7%, 80.8%, 0%, 49%)
CIE-LABlab(23.86, 45.20, -47.72)
CIE-LCHlch(23.86, 65.73, 313.44°)
OKLaboklab(36.42% 0.0887 -0.1362)
OKLCHoklch(36.42% 0.162 303.1)
XYZxyz(7.7693, 4.0563, 21.4884)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511982 #4A8219
analogous
#1C1982 #511982 #82197E
triadic
#511982 #825119 #198251
tetradic
#511982 #821C19 #4A8219 #197E82
square
#511982 #821C19 #4A8219 #197E82
split-complementary
#511982 #7E8219 #19821C
monochromatic
#11051B #310F4F #511982 #7123B5 #903CD9

Accessibility & contrast

On white

11.59
#511982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#511982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511982
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511982#FFFFFF#000000##FFFFFF
##5119821.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#47354D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511982;
/* rgb */ color: rgb(81, 25, 130);
/* oklch */ color: oklch(36.4% 0.162 303.1);
Tailwind
colors: {
  custom: {
    50: '#875da7',
    500: '#511982',
    950: '#000000',
  },
}
SCSS
$custom: #511982;
$custom-light: #875da7;
$custom-dark: #000000;
JSON
{
  "hex": "#511982",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 272,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36416,
    "c": 0.16248,
    "h": 303.1
  },
  "luminance": 0.04056
}

Semantic roles & 50–950 ramp

primary
#511982
secondary
#77B641
accent
#EB3D8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511982

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

Preview Lab → · Contrast checker → · Palette generator →

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