#511F92#511F92

#511F92 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.173 H 297.1°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#511F92
RGBrgb(81, 31, 146)
HSLhsl(266, 65%, 35%)
HSVhsv(266, 79%, 57%)
CMYKcmyk(44.5%, 78.8%, 0%, 42.7%)
CIE-LABlab(26.17, 46.72, -53.93)
CIE-LCHlch(26.17, 71.35, 310.91°)
OKLaboklab(38.47% 0.079 -0.1544)
OKLCHoklch(38.47% 0.173 297.1)
XYZxyz(9.0703, 4.8044, 27.6380)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F92 #60921F
analogous
#1F2692 #511F92 #8B1F92
triadic
#511F92 #92511F #1F9251
tetradic
#511F92 #921F26 #60921F #1F928B
square
#511F92 #921F26 #60921F #1F928B
split-complementary
#511F92 #928B1F #26921F
monochromatic
#190A2D #351460 #511F92 #6D2AC4 #8D51DA

Accessibility & contrast

On white

10.71
#511F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#511F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F92
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F92#FFFFFF#000000##FFFFFF
##511F921.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E95
Deuteranopia (green-blind)
#003C90
Tritanopia (blue-blind)
#403E58
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #511f92;
/* rgb */ color: rgb(81, 31, 146);
/* oklch */ color: oklch(38.5% 0.173 297.1);
Tailwind
colors: {
  custom: {
    50: '#8961b3',
    500: '#511f92',
    950: '#000000',
  },
}
SCSS
$custom: #511f92;
$custom-light: #8961b3;
$custom-dark: #000000;
JSON
{
  "hex": "#511f92",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 266.087,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38474,
    "c": 0.17343,
    "h": 297.1
  },
  "luminance": 0.04805
}

Semantic roles & 50–950 ramp

primary
#511F92
secondary
#8EBD50
accent
#E8409F
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511F92

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

Preview Lab → · Contrast checker → · Palette generator →

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