#511873#511873

#511873 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.148 H 309.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#511873
RGBrgb(81, 24, 115)
HSLhsl(278, 65%, 27%)
HSVhsv(278, 79%, 45%)
CMYKcmyk(29.6%, 79.1%, 0%, 54.9%)
CIE-LABlab(22.45, 42.00, -40.47)
CIE-LCHlch(22.45, 58.32, 316.06°)
OKLaboklab(35.03% 0.0933 -0.1148)
OKLCHoklch(35.03% 0.148 309.1)
XYZxyz(6.8139, 3.6405, 16.5601)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511873 #3A7318
analogous
#231873 #511873 #731868
triadic
#511873 #735118 #187351
tetradic
#511873 #732318 #3A7318 #186873
square
#511873 #732318 #3A7318 #186873
split-complementary
#511873 #687318 #187323
monochromatic
#120519 #2D0D40 #511873 #7523A6 #9731D4

Accessibility & contrast

On white

12.15
#511873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511873
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511873#FFFFFF#000000##FFFFFF
##5118731.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003376
Deuteranopia (green-blind)
#003671
Tritanopia (blue-blind)
#4C2E45
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511873;
/* rgb */ color: rgb(81, 24, 115);
/* oklch */ color: oklch(35.0% 0.148 309.1);
Tailwind
colors: {
  custom: {
    50: '#865c9c',
    500: '#511873',
    950: '#000000',
  },
}
SCSS
$custom: #511873;
$custom-light: #865c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#511873",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 115
  },
  "hsl": {
    "h": 277.582,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3503,
    "c": 0.14798,
    "h": 309.1
  },
  "luminance": 0.0364
}

Semantic roles & 50–950 ramp

primary
#511873
secondary
#66A83F
accent
#E83F7F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511873

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

Preview Lab → · Contrast checker → · Palette generator →

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