#511258#511258

#511258 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.4% C 0.129 H 323.5°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#511258
RGBrgb(81, 18, 88)
HSLhsl(294, 66%, 21%)
HSVhsv(294, 80%, 35%)
CMYKcmyk(8%, 79.5%, 0%, 65.5%)
CIE-LABlab(19.59, 38.49, -27.37)
CIE-LCHlch(19.59, 47.22, 324.58°)
OKLaboklab(32.36% 0.1034 -0.0764)
OKLCHoklch(32.36% 0.129 323.5)
XYZxyz(5.3709, 2.8869, 9.5049)
Luminance0.0289 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511258 #195812
analogous
#2E1258 #511258 #58123C
triadic
#511258 #585112 #125851
tetradic
#511258 #582E12 #195812 #123C58
square
#511258 #582E12 #195812 #123C58
split-complementary
#511258 #3C5812 #12582E
monochromatic
#170519 #220825 #511258 #801C8B #AF27BE

Accessibility & contrast

On white

13.31
#511258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#511258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511258
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511258#FFFFFF#000000##FFFFFF
##5112581.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5A
Deuteranopia (green-blind)
#1E3256
Tritanopia (blue-blind)
#521F34
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511258;
/* rgb */ color: rgb(81, 18, 88);
/* oklch */ color: oklch(32.4% 0.129 323.5);
Tailwind
colors: {
  custom: {
    50: '#855887',
    500: '#511258',
    950: '#000000',
  },
}
SCSS
$custom: #511258;
$custom-light: #855887;
$custom-dark: #000000;
JSON
{
  "hex": "#511258",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 294,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32363,
    "c": 0.12851,
    "h": 323.5
  },
  "luminance": 0.02887
}

Semantic roles & 50–950 ramp

primary
#511258
secondary
#3E9135
accent
#E93F50
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511258

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

Preview Lab → · Contrast checker → · Palette generator →

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