#511F75#511F75

#511F75 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.141 H 307.2°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#511F75
RGBrgb(81, 31, 117)
HSLhsl(275, 58%, 29%)
HSVhsv(275, 74%, 46%)
CMYKcmyk(30.8%, 73.5%, 0%, 54.1%)
CIE-LABlab(23.72, 39.32, -39.70)
CIE-LCHlch(23.72, 55.87, 314.73°)
OKLaboklab(35.98% 0.0856 -0.1126)
OKLCHoklch(35.98% 0.141 307.2)
XYZxyz(7.0935, 4.0137, 17.2272)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F75 #43751F
analogous
#261F75 #511F75 #751F6E
triadic
#511F75 #75511F #1F7551
tetradic
#511F75 #75261F #43751F #1F6E75
square
#511F75 #75261F #43751F #1F6E75
split-complementary
#511F75 #6E751F #1F7526
monochromatic
#110618 #301245 #511F75 #722CA5 #9342CD

Accessibility & contrast

On white

11.65
#511F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F75
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F75#FFFFFF#000000##FFFFFF
##511F751.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#053973
Tritanopia (blue-blind)
#4B3348
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511f75;
/* rgb */ color: rgb(81, 31, 117);
/* oklch */ color: oklch(36.0% 0.141 307.2);
Tailwind
colors: {
  custom: {
    50: '#865f9d',
    500: '#511f75',
    950: '#000000',
  },
}
SCSS
$custom: #511f75;
$custom-light: #865f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511f75",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 274.884,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35981,
    "c": 0.14145,
    "h": 307.2
  },
  "luminance": 0.04014
}

Semantic roles & 50–950 ramp

primary
#511F75
secondary
#70A947
accent
#E14687
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511F75

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

Preview Lab → · Contrast checker → · Palette generator →

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