#551271#551271

#551271 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.154 H 313.1°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#551271
RGBrgb(85, 18, 113)
HSLhsl(282, 73%, 26%)
HSVhsv(282, 84%, 44%)
CMYKcmyk(24.8%, 84.1%, 0%, 55.7%)
CIE-LABlab(22.15, 44.58, -39.64)
CIE-LCHlch(22.15, 59.66, 318.36°)
OKLaboklab(34.9% 0.1049 -0.1122)
OKLCHoklch(34.9% 0.154 313.1)
XYZxyz(6.9427, 3.5564, 15.9403)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#551271 #2E7112
analogous
#251271 #551271 #71125D
triadic
#551271 #715512 #127155
tetradic
#551271 #712512 #2E7112 #125D71
square
#551271 #712512 #2E7112 #125D71
split-complementary
#551271 #5D7112 #127125
monochromatic
#14041A #2D0A3C #551271 #7D1AA6 #A423DB

Accessibility & contrast

On white

12.27
#551271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#551271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #551271
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##551271#FFFFFF#000000##FFFFFF
##5512711.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#03366F
Tritanopia (blue-blind)
#522A42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #551271;
/* rgb */ color: rgb(85, 18, 113);
/* oklch */ color: oklch(34.9% 0.154 313.1);
Tailwind
colors: {
  custom: {
    50: '#895a9a',
    500: '#551271',
    950: '#000000',
  },
}
SCSS
$custom: #551271;
$custom-light: #895a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#551271",
  "rgb": {
    "r": 85,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 282.316,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34902,
    "c": 0.15362,
    "h": 313.1
  },
  "luminance": 0.03556
}

Semantic roles & 50–950 ramp

primary
#551271
secondary
#58A837
accent
#EF396E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #551271

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

Preview Lab → · Contrast checker → · Palette generator →

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