#511348#511348

#511348 is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.4% C 0.113 H 334.4°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#511348
RGBrgb(81, 19, 72)
HSLhsl(309, 62%, 20%)
HSVhsv(309, 77%, 32%)
CMYKcmyk(0%, 76.5%, 11.1%, 68.2%)
CIE-LABlab(18.73, 35.07, -17.87)
CIE-LCHlch(18.73, 39.36, 333.01°)
OKLaboklab(31.43% 0.1019 -0.0488)
OKLCHoklch(31.43% 0.113 334.4)
XYZxyz(4.7960, 2.6834, 6.3950)
Luminance0.0268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511348 #13511C
analogous
#3B1351 #511348 #511329
triadic
#511348 #485113 #134851
tetradic
#511348 #513B13 #13511C #132951
square
#511348 #513B13 #13511C #132951
split-complementary
#511348 #295113 #13513B
monochromatic
#190616 #1F071C #511348 #831F74 #B42AA0

Accessibility & contrast

On white

13.67
#511348 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#511348 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511348
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511348#FFFFFF#000000##FFFFFF
##5113481.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122849
Deuteranopia (green-blind)
#283146
Tritanopia (blue-blind)
#55182B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #511348;
/* rgb */ color: rgb(81, 19, 72);
/* oklch */ color: oklch(31.4% 0.113 334.4);
Tailwind
colors: {
  custom: {
    50: '#84577b',
    500: '#511348',
    950: '#000000',
  },
}
SCSS
$custom: #511348;
$custom-light: #84577b;
$custom-dark: #000000;
JSON
{
  "hex": "#511348",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 72
  },
  "hsl": {
    "h": 308.71,
    "s": 62,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31426,
    "c": 0.11299,
    "h": 334.4
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#511348
secondary
#368A42
accent
#E55A43
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #511348

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

Preview Lab → · Contrast checker → · Palette generator →

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