#511375#511375

#511375 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.155 H 308.8°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#511375
RGBrgb(81, 19, 117)
HSLhsl(278, 72%, 27%)
HSVhsv(278, 84%, 46%)
CMYKcmyk(30.8%, 83.8%, 0%, 54.1%)
CIE-LABlab(21.94, 44.39, -42.57)
CIE-LCHlch(21.94, 61.51, 316.20°)
OKLaboklab(34.73% 0.0973 -0.121)
OKLCHoklch(34.73% 0.155 308.8)
XYZxyz(6.8364, 3.4996, 17.1415)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511375 #377513
analogous
#201375 #511375 #751368
triadic
#511375 #755113 #137551
tetradic
#511375 #752013 #377513 #136875
square
#511375 #752013 #377513 #136875
split-complementary
#511375 #687513 #137520
monochromatic
#12041A #2D0A40 #511375 #751CAA #9927DC

Accessibility & contrast

On white

12.35
#511375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#511375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511375
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511375#FFFFFF#000000##FFFFFF
##5113751.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#4B2D45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511375;
/* rgb */ color: rgb(81, 19, 117);
/* oklch */ color: oklch(34.7% 0.155 308.8);
Tailwind
colors: {
  custom: {
    50: '#865a9d',
    500: '#511375',
    950: '#000000',
  },
}
SCSS
$custom: #511375;
$custom-light: #865a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511375",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 117
  },
  "hsl": {
    "h": 277.959,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3473,
    "c": 0.15527,
    "h": 308.8
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#511375
secondary
#63AB38
accent
#EF397C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511375

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

Preview Lab → · Contrast checker → · Palette generator →

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