#511E75#511E75

#511E75 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.143 H 307.4°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#511E75
RGBrgb(81, 30, 117)
HSLhsl(275, 59%, 29%)
HSVhsv(275, 74%, 46%)
CMYKcmyk(30.8%, 74.4%, 0%, 54.1%)
CIE-LABlab(23.55, 39.80, -39.97)
CIE-LCHlch(23.55, 56.41, 314.88°)
OKLaboklab(35.86% 0.0867 -0.1134)
OKLCHoklch(35.86% 0.143 307.4)
XYZxyz(7.0678, 3.9623, 17.2186)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E75 #42751E
analogous
#251E75 #511E75 #751E6E
triadic
#511E75 #75511E #1E7551
tetradic
#511E75 #75251E #42751E #1E6E75
square
#511E75 #75251E #42751E #1E6E75
split-complementary
#511E75 #6E751E #1E7525
monochromatic
#110618 #2F1244 #511E75 #732AA6 #9340CE

Accessibility & contrast

On white

11.72
#511E75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#511E75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E75
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E75#FFFFFF#000000##FFFFFF
##511E751.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#033873
Tritanopia (blue-blind)
#4B3247
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511e75;
/* rgb */ color: rgb(81, 30, 117);
/* oklch */ color: oklch(35.9% 0.143 307.4);
Tailwind
colors: {
  custom: {
    50: '#865f9d',
    500: '#511e75',
    950: '#000000',
  },
}
SCSS
$custom: #511e75;
$custom-light: #865f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511e75",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 117
  },
  "hsl": {
    "h": 275.172,
    "s": 59.184,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35859,
    "c": 0.14276,
    "h": 307.4
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#511E75
secondary
#6FA946
accent
#E24586
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511E75

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

Preview Lab → · Contrast checker → · Palette generator →

#511E75 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva