#511983#511983

#511983 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.164 H 302.7°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#511983
RGBrgb(81, 25, 131)
HSLhsl(272, 68%, 31%)
HSVhsv(272, 81%, 51%)
CMYKcmyk(38.2%, 80.9%, 0%, 48.6%)
CIE-LABlab(23.94, 45.44, -48.21)
CIE-LCHlch(23.94, 66.25, 313.31°)
OKLaboklab(36.5% 0.0884 -0.1376)
OKLCHoklch(36.5% 0.164 302.7)
XYZxyz(7.8367, 4.0833, 21.8436)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511983 #4B8319
analogous
#1C1983 #511983 #831980
triadic
#511983 #835119 #198351
tetradic
#511983 #831C19 #4B8319 #198083
square
#511983 #831C19 #4B8319 #198083
split-complementary
#511983 #808319 #19831C
monochromatic
#11051C #310F50 #511983 #7123B6 #903DDA

Accessibility & contrast

On white

11.56
#511983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#511983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511983
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511983#FFFFFF#000000##FFFFFF
##5119831.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003981
Tritanopia (blue-blind)
#46354E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511983;
/* rgb */ color: rgb(81, 25, 131);
/* oklch */ color: oklch(36.5% 0.164 302.7);
Tailwind
colors: {
  custom: {
    50: '#875da8',
    500: '#511983',
    950: '#000000',
  },
}
SCSS
$custom: #511983;
$custom-light: #875da8;
$custom-dark: #000000;
JSON
{
  "hex": "#511983",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 271.698,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36505,
    "c": 0.16352,
    "h": 302.7
  },
  "luminance": 0.04083
}

Semantic roles & 50–950 ramp

primary
#511983
secondary
#79B741
accent
#EB3D8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511983

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

Preview Lab → · Contrast checker → · Palette generator →

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