#511F74#511F74

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

Color values

HEX#511F74
RGBrgb(81, 31, 116)
HSLhsl(275, 58%, 29%)
HSVhsv(275, 73%, 45%)
CMYKcmyk(30.2%, 73.3%, 0%, 54.5%)
CIE-LABlab(23.64, 39.07, -39.18)
CIE-LCHlch(23.64, 55.33, 314.92°)
OKLaboklab(35.9% 0.0858 -0.1111)
OKLCHoklch(35.9% 0.14 307.7)
XYZxyz(7.0351, 3.9904, 16.9192)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F74 #42741F
analogous
#271F74 #511F74 #741F6D
triadic
#511F74 #74511F #1F7451
tetradic
#511F74 #74271F #42741F #1F6D74
square
#511F74 #74271F #42741F #1F6D74
split-complementary
#511F74 #6D741F #1F7427
monochromatic
#110618 #2F1244 #511F74 #732CA4 #9341CC

Accessibility & contrast

On white

11.68
#511F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#511F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F74
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F74#FFFFFF#000000##FFFFFF
##511F741.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511f74;
/* rgb */ color: rgb(81, 31, 116);
/* oklch */ color: oklch(35.9% 0.140 307.7);
Tailwind
colors: {
  custom: {
    50: '#855f9d',
    500: '#511f74',
    950: '#000000',
  },
}
SCSS
$custom: #511f74;
$custom-light: #855f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511f74",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 275.294,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35901,
    "c": 0.14034,
    "h": 307.7
  },
  "luminance": 0.0399
}

Semantic roles & 50–950 ramp

primary
#511F74
secondary
#6FA847
accent
#E14786
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511F74

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

Preview Lab → · Contrast checker → · Palette generator →

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