#511F73#511F73

#511F73 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.139 H 308.1°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#511F73
RGBrgb(81, 31, 115)
HSLhsl(276, 58%, 29%)
HSVhsv(276, 73%, 45%)
CMYKcmyk(29.6%, 73%, 0%, 54.9%)
CIE-LABlab(23.56, 38.83, -38.66)
CIE-LCHlch(23.56, 54.79, 315.12°)
OKLaboklab(35.82% 0.0859 -0.1096)
OKLCHoklch(35.82% 0.139 308.1)
XYZxyz(6.9772, 3.9672, 16.6145)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F73 #41731F
analogous
#271F73 #511F73 #731F6B
triadic
#511F73 #73511F #1F7351
tetradic
#511F73 #73271F #41731F #1F6B73
square
#511F73 #73271F #41731F #1F6B73
split-complementary
#511F73 #6B731F #1F7327
monochromatic
#110618 #2F1243 #511F73 #732CA3 #9341CC

Accessibility & contrast

On white

11.71
#511F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F73
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F73#FFFFFF#000000##FFFFFF
##511F731.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003675
Deuteranopia (green-blind)
#0A3971
Tritanopia (blue-blind)
#4C3246
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511f73;
/* rgb */ color: rgb(81, 31, 115);
/* oklch */ color: oklch(35.8% 0.139 308.1);
Tailwind
colors: {
  custom: {
    50: '#855f9c',
    500: '#511f73',
    950: '#000000',
  },
}
SCSS
$custom: #511f73;
$custom-light: #855f9c;
$custom-dark: #000000;
JSON
{
  "hex": "#511f73",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 275.714,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35822,
    "c": 0.13923,
    "h": 308.1
  },
  "luminance": 0.03967
}

Semantic roles & 50–950 ramp

primary
#511F73
secondary
#6EA747
accent
#E14785
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511F73

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

Preview Lab → · Contrast checker → · Palette generator →

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