#511895#511895

#511895 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.183 H 297.1°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#511895
RGBrgb(81, 24, 149)
HSLhsl(267, 72%, 34%)
HSVhsv(267, 84%, 58%)
CMYKcmyk(45.6%, 83.9%, 0%, 41.6%)
CIE-LABlab(25.48, 50.31, -56.91)
CIE-LCHlch(25.48, 75.96, 311.48°)
OKLaboklab(38.08% 0.0833 -0.1631)
OKLCHoklch(38.08% 0.183 297.1)
XYZxyz(9.1434, 4.5723, 28.8288)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511895 #5C9518
analogous
#181E95 #511895 #901895
triadic
#511895 #955118 #189551
tetradic
#511895 #95181E #5C9518 #189590
square
#511895 #95181E #5C9518 #189590
split-complementary
#511895 #959018 #1E9518
monochromatic
#18072C #341060 #511895 #6E20CA #8D46E1

Accessibility & contrast

On white

10.97
#511895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#511895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511895
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511895#FFFFFF#000000##FFFFFF
##5118951.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003B93
Tritanopia (blue-blind)
#3E3D58
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #511895;
/* rgb */ color: rgb(81, 24, 149);
/* oklch */ color: oklch(38.1% 0.183 297.1);
Tailwind
colors: {
  custom: {
    50: '#895eb5',
    500: '#511895',
    950: '#000000',
  },
}
SCSS
$custom: #511895;
$custom-light: #895eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#511895",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 267.36,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38081,
    "c": 0.18315,
    "h": 297.1
  },
  "luminance": 0.04573
}

Semantic roles & 50–950 ramp

primary
#511895
secondary
#8AC246
accent
#EF399C
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #511895

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

Preview Lab → · Contrast checker → · Palette generator →

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