Color profile

#9E2871 — Color

RGB

158 · 40 · 113

HSL

322° · 59% · 38%

CMYK

0 · 74 · 28 · 38
#9E2871

On light

WCAG AA

On dark

AAA headlines

Web safe variant

#993366

Color spaces

RGB
R 158 G 40 B 113
HSL
322° 59% 38%
HSV
322° 74% 61%
CMYK
0 74 28 38
XYZ
17.84 9.98 16.61
CIE Lab
L 37.81 a 54.35 b -14.08

Base numbers

Base-2

Binary

Base-8

Octal

Base-10

Decimal

Base-16

Hex

RGB distribution

Red 50.80%
Green 12.86%
Blue 36.33%

Usage highlights

  • Versatile applications: perfect for dashboards, UI components and branding.
  • Color partnerships: pairs with #22c55e / #f97316 for modern contrast.
  • Display optimization: works well on both light and dark backgrounds.
  • Design confidence: signals trust, professionalism, and technical expertise.

Interactive tools

Build palettes and validate contrast on the fly

Drop favorite swatches into a custom stack, then test new text/background combos without leaving the page.

Contrast playground

Test two colors and instantly see ratio + WCAG level.

6.2:1 AA

Mission control confirms calm seas.

Body text ready (AA).

Derived palettes

Shades, tints and harmonies

Generate system-ready palettes directly from the source swatch. Each tone carries HEX and contextual tags.

Code snippets

Drop into CSS, Tailwind or design tokens

CSS utility

Component tokens

:root {
  --color-hex-9e2871: #9E2871;
}
.btn-color {
  background: var(--color-hex-9e2871);
  color: #f8fafc;
  box-shadow: 0 10px 25px rgba(158, 40, 113, 0.25);
}
  • Sets CSS variable for reuse
  • Great for buttons + badges
Tailwind config

Design token extend

module.exports = {
  theme: {
    extend: {
      colors: {
        hex9e2871: '#9E2871',
        hex9e2871Tint: '#AE4B88',
      },
    },
  },
};
  • Adds custom palette entries
  • Works with Tailwind 3+
CSS effects

Shadow presets

.text-color-9e2871 {
  color: #9E2871;
  text-shadow: 4px 4px 2px rgba(158, 40, 113, 0.8);
}
.panel-color-9e2871 {
  border: 3px solid #9E2871;
  box-shadow: 1px 1px 3px 2px #9E2871;
}
  • Typography + panel styling
  • Ideal for hero headlines

Accessibility lab

See the swatch on contrasting surfaces

Compare how #9E2871 behaves in light dashboards, dark terminals and mixed layouts. Ratios are based on WCAG 2.1 calculations at 100% opacity.

Light UI 6.2:1 · AA

Mission control confirms calm seas.

  • Usage: body copy, data labels.
  • Background: #e6eaeb shell.
  • Min size: 16px regular, 14px bold.
Dark UI 12.8:1 · AAA

Vector shields aligned. Engage warp.

  • Usage: hero headings, CTA outlines.
  • Background: #0f172a cockpit.
  • Min size: 12px icons, 18px type.

Pairing matrix

Background #9E2871 text #f8fafc text
#e6eaeb AA N/A
#0f172a AAA AA
#050505 AAA AA

Swap to #f97316 text on dark shells to push CTA contrast to 9.4:1.