#571276#571276

#571276 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.159 H 312.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#571276
RGBrgb(87, 18, 118)
HSLhsl(281, 74%, 27%)
HSVhsv(281, 85%, 46%)
CMYKcmyk(26.3%, 84.7%, 0%, 53.7%)
CIE-LABlab(22.89, 46.05, -41.64)
CIE-LCHlch(22.89, 62.08, 317.88°)
OKLaboklab(35.61% 0.1066 -0.118)
OKLCHoklch(35.61% 0.159 312.1)
XYZxyz(7.4162, 3.7671, 17.4725)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#571276 #317612
analogous
#251276 #571276 #761263
triadic
#571276 #765712 #127657
tetradic
#571276 #762512 #317612 #126376
square
#571276 #762512 #317612 #126376
split-complementary
#571276 #637612 #127625
monochromatic
#14041B #300A41 #571276 #7E1AAB #A425DE

Accessibility & contrast

On white

11.98
#571276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#571276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #571276
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##571276#FFFFFF#000000##FFFFFF
##5712761.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#003874
Tritanopia (blue-blind)
#532C45
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #571276;
/* rgb */ color: rgb(87, 18, 118);
/* oklch */ color: oklch(35.6% 0.159 312.1);
Tailwind
colors: {
  custom: {
    50: '#8b5a9e',
    500: '#571276',
    950: '#000000',
  },
}
SCSS
$custom: #571276;
$custom-light: #8b5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#571276",
  "rgb": {
    "r": 87,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 281.4,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.35613,
    "c": 0.15899,
    "h": 312.1
  },
  "luminance": 0.03767
}

Semantic roles & 50–950 ramp

primary
#571276
secondary
#5CAD37
accent
#F03871
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #571276

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

Preview Lab → · Contrast checker → · Palette generator →

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