#511883#511883

#511883 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.165 H 302.8°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#511883
RGBrgb(81, 24, 131)
HSLhsl(272, 69%, 30%)
HSVhsv(272, 82%, 51%)
CMYKcmyk(38.2%, 81.7%, 0%, 48.6%)
CIE-LABlab(23.81, 45.84, -48.43)
CIE-LCHlch(23.81, 66.69, 313.43°)
OKLaboklab(36.41% 0.0892 -0.1382)
OKLCHoklch(36.41% 0.165 302.8)
XYZxyz(7.8157, 4.0413, 21.8366)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511883 #4A8318
analogous
#1C1883 #511883 #83187F
triadic
#511883 #835118 #188351
tetradic
#511883 #831C18 #4A8318 #187F83
square
#511883 #831C18 #4A8318 #187F83
split-complementary
#511883 #7F8318 #18831C
monochromatic
#11051C #310F4F #511883 #7121B7 #903ADB

Accessibility & contrast

On white

11.61
#511883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511883
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511883#FFFFFF#000000##FFFFFF
##5118831.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511883;
/* rgb */ color: rgb(81, 24, 131);
/* oklch */ color: oklch(36.4% 0.165 302.8);
Tailwind
colors: {
  custom: {
    50: '#875da8',
    500: '#511883',
    950: '#000000',
  },
}
SCSS
$custom: #511883;
$custom-light: #875da8;
$custom-dark: #000000;
JSON
{
  "hex": "#511883",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 131
  },
  "hsl": {
    "h": 271.963,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36409,
    "c": 0.16453,
    "h": 302.8
  },
  "luminance": 0.04041
}

Semantic roles & 50–950 ramp

primary
#511883
secondary
#77B740
accent
#EC3C8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #511883

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

Preview Lab → · Contrast checker → · Palette generator →

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