#511F79#511F79

#511F79 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.146 H 305.6°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#511F79
RGBrgb(81, 31, 121)
HSLhsl(273, 59%, 30%)
HSVhsv(273, 74%, 47%)
CMYKcmyk(33.1%, 74.4%, 0%, 52.5%)
CIE-LABlab(24.03, 40.31, -41.74)
CIE-LCHlch(24.03, 58.03, 314.01°)
OKLaboklab(36.3% 0.0849 -0.1186)
OKLCHoklch(36.3% 0.146 305.6)
XYZxyz(7.3338, 4.1098, 18.4924)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F79 #47791F
analogous
#241F79 #511F79 #791F74
triadic
#511F79 #79511F #1F7951
tetradic
#511F79 #79241F #47791F #1F7479
square
#511F79 #79241F #47791F #1F7479
split-complementary
#511F79 #74791F #1F7924
monochromatic
#100618 #301348 #511F79 #722BAA #9143CF

Accessibility & contrast

On white

11.53
#511F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#511F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F79
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F79#FFFFFF#000000##FFFFFF
##511F791.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003977
Tritanopia (blue-blind)
#4A344A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511f79;
/* rgb */ color: rgb(81, 31, 121);
/* oklch */ color: oklch(36.3% 0.146 305.6);
Tailwind
colors: {
  custom: {
    50: '#865fa0',
    500: '#511f79',
    950: '#000000',
  },
}
SCSS
$custom: #511f79;
$custom-light: #865fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#511f79",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 273.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36303,
    "c": 0.14588,
    "h": 305.6
  },
  "luminance": 0.0411
}

Semantic roles & 50–950 ramp

primary
#511F79
secondary
#74AC47
accent
#E2458B
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #511F79

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

Preview Lab → · Contrast checker → · Palette generator →

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