#552871#552871

#552871 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.125 H 310.1°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#552871
RGBrgb(85, 40, 113)
HSLhsl(277, 48%, 30%)
HSVhsv(277, 65%, 44%)
CMYKcmyk(24.8%, 64.6%, 0%, 55.7%)
CIE-LABlab(25.69, 34.63, -33.93)
CIE-LCHlch(25.69, 48.48, 315.59°)
OKLaboklab(37.43% 0.0806 -0.0956)
OKLCHoklch(37.43% 0.125 310.1)
XYZxyz(7.4852, 4.6413, 16.1211)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#552871 #447128
analogous
#302871 #552871 #712869
triadic
#552871 #715528 #287155
tetradic
#552871 #713028 #447128 #286971
square
#552871 #713028 #447128 #286971
split-complementary
#552871 #697128 #287130
monochromatic
#110817 #331844 #552871 #77389E #9752C2

Accessibility & contrast

On white

10.89
#552871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#552871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #552871
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##552871#FFFFFF#000000##FFFFFF
##5528711.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083B73
Deuteranopia (green-blind)
#1F3E6F
Tritanopia (blue-blind)
#513648
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #552871;
/* rgb */ color: rgb(85, 40, 113);
/* oklch */ color: oklch(37.4% 0.125 310.1);
Tailwind
colors: {
  custom: {
    50: '#87659a',
    500: '#552871',
    950: '#000000',
  },
}
SCSS
$custom: #552871;
$custom-light: #87659a;
$custom-dark: #000000;
JSON
{
  "hex": "#552871",
  "rgb": {
    "r": 85,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 276.986,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.37428,
    "c": 0.12501,
    "h": 310.1
  },
  "luminance": 0.04641
}

Semantic roles & 50–950 ramp

primary
#552871
secondary
#71A352
accent
#D75084
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #552871

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

Preview Lab → · Contrast checker → · Palette generator →

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