#511875#511875

#511875 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.150 H 308.2°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#511875
RGBrgb(81, 24, 117)
HSLhsl(277, 66%, 28%)
HSVhsv(277, 79%, 46%)
CMYKcmyk(30.8%, 79.5%, 0%, 54.1%)
CIE-LABlab(22.61, 42.47, -41.49)
CIE-LCHlch(22.61, 59.37, 315.67°)
OKLaboklab(35.2% 0.0929 -0.1178)
OKLCHoklch(35.2% 0.15 308.2)
XYZxyz(6.9302, 3.6871, 17.1728)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511875 #3C7518
analogous
#221875 #511875 #75186A
triadic
#511875 #755118 #187551
tetradic
#511875 #752218 #3C7518 #186A75
square
#511875 #752218 #3C7518 #186A75
split-complementary
#511875 #6A7518 #187522
monochromatic
#120519 #2E0E42 #511875 #7422A8 #9632D5

Accessibility & contrast

On white

12.09
#511875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#511875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511875
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511875#FFFFFF#000000##FFFFFF
##5118751.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.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: #511875;
/* rgb */ color: rgb(81, 24, 117);
/* oklch */ color: oklch(35.2% 0.150 308.2);
Tailwind
colors: {
  custom: {
    50: '#865c9d',
    500: '#511875',
    950: '#000000',
  },
}
SCSS
$custom: #511875;
$custom-light: #865c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511875",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 276.774,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35196,
    "c": 0.15005,
    "h": 308.2
  },
  "luminance": 0.03687
}

Semantic roles & 50–950 ramp

primary
#511875
secondary
#68AA3F
accent
#E93F81
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511875

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

Preview Lab → · Contrast checker → · Palette generator →

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