#511775#511775

#511775 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.151 H 308.4°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#511775
RGBrgb(81, 23, 117)
HSLhsl(277, 67%, 27%)
HSVhsv(277, 80%, 46%)
CMYKcmyk(30.8%, 80.3%, 0%, 54.1%)
CIE-LABlab(22.47, 42.88, -41.72)
CIE-LCHlch(22.47, 59.82, 315.78°)
OKLaboklab(35.1% 0.0938 -0.1185)
OKLCHoklch(35.1% 0.151 308.4)
XYZxyz(6.9100, 3.6466, 17.1660)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511775 #3B7517
analogous
#221775 #511775 #75176A
triadic
#511775 #755117 #177551
tetradic
#511775 #752217 #3B7517 #176A75
square
#511775 #752217 #3B7517 #176A75
split-complementary
#511775 #6A7517 #177522
monochromatic
#12051A #2E0D42 #511775 #7421A8 #9730D6

Accessibility & contrast

On white

12.14
#511775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#511775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511775
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511775#FFFFFF#000000##FFFFFF
##5117751.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511775;
/* rgb */ color: rgb(81, 23, 117);
/* oklch */ color: oklch(35.1% 0.151 308.4);
Tailwind
colors: {
  custom: {
    50: '#865b9d',
    500: '#511775',
    950: '#000000',
  },
}
SCSS
$custom: #511775;
$custom-light: #865b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511775",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 277.021,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35097,
    "c": 0.15116,
    "h": 308.4
  },
  "luminance": 0.03646
}

Semantic roles & 50–950 ramp

primary
#511775
secondary
#67AA3D
accent
#EA3E80
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511775

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

Preview Lab → · Contrast checker → · Palette generator →

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