#511575#511575

#511575 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.153 H 308.6°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#511575
RGBrgb(81, 21, 117)
HSLhsl(278, 70%, 27%)
HSVhsv(278, 82%, 46%)
CMYKcmyk(30.8%, 82.1%, 0%, 54.1%)
CIE-LABlab(22.20, 43.66, -42.16)
CIE-LCHlch(22.20, 60.69, 316.00°)
OKLaboklab(34.91% 0.0956 -0.1198)
OKLCHoklch(34.91% 0.153 308.6)
XYZxyz(6.8717, 3.5701, 17.1533)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511575 #397515
analogous
#211575 #511575 #751569
triadic
#511575 #755115 #157551
tetradic
#511575 #752115 #397515 #156975
square
#511575 #752115 #397515 #156975
split-complementary
#511575 #697515 #157521
monochromatic
#12051A #2D0C41 #511575 #751EA9 #982BD9

Accessibility & contrast

On white

12.25
#511575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#511575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511575
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511575#FFFFFF#000000##FFFFFF
##5115751.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#003673
Tritanopia (blue-blind)
#4B2E45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511575;
/* rgb */ color: rgb(81, 21, 117);
/* oklch */ color: oklch(34.9% 0.153 308.6);
Tailwind
colors: {
  custom: {
    50: '#865a9d',
    500: '#511575',
    950: '#000000',
  },
}
SCSS
$custom: #511575;
$custom-light: #865a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511575",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 277.5,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34907,
    "c": 0.15328,
    "h": 308.6
  },
  "luminance": 0.0357
}

Semantic roles & 50–950 ramp

primary
#511575
secondary
#65AB3B
accent
#EC3B7E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511575

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

Preview Lab → · Contrast checker → · Palette generator →

#511575 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva