#511975#511975

#511975 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.149 H 308.1°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#511975
RGBrgb(81, 25, 117)
HSLhsl(277, 65%, 28%)
HSVhsv(277, 79%, 46%)
CMYKcmyk(30.8%, 78.6%, 0%, 54.1%)
CIE-LABlab(22.75, 42.05, -41.25)
CIE-LCHlch(22.75, 58.91, 315.55°)
OKLaboklab(35.3% 0.0919 -0.1171)
OKLCHoklch(35.3% 0.149 308.1)
XYZxyz(6.9512, 3.7291, 17.1798)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511975 #3D7519
analogous
#231975 #511975 #75196B
triadic
#511975 #755119 #197551
tetradic
#511975 #752319 #3D7519 #196B75
square
#511975 #752319 #3D7519 #196B75
split-complementary
#511975 #6B7519 #197523
monochromatic
#110519 #2E0E43 #511975 #7424A7 #9535D4

Accessibility & contrast

On white

12.03
#511975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#511975 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511975
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511975#FFFFFF#000000##FFFFFF
##5119751.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511975;
/* rgb */ color: rgb(81, 25, 117);
/* oklch */ color: oklch(35.3% 0.149 308.1);
Tailwind
colors: {
  custom: {
    50: '#865c9d',
    500: '#511975',
    950: '#000000',
  },
}
SCSS
$custom: #511975;
$custom-light: #865c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511975",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 117
  },
  "hsl": {
    "h": 276.522,
    "s": 64.789,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35299,
    "c": 0.14891,
    "h": 308.1
  },
  "luminance": 0.03729
}

Semantic roles & 50–950 ramp

primary
#511975
secondary
#69AA40
accent
#E84082
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511975

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

Preview Lab → · Contrast checker → · Palette generator →

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