#5E2271#5E2271

#5E2271 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.9% C 0.138 H 317.0°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#5E2271
RGBrgb(94, 34, 113)
HSLhsl(286, 54%, 29%)
HSVhsv(286, 70%, 44%)
CMYKcmyk(16.8%, 69.9%, 0%, 55.7%)
CIE-LABlab(25.91, 40.00, -33.50)
CIE-LCHlch(25.91, 52.17, 320.05°)
OKLaboklab(37.87% 0.1008 -0.094)
OKLCHoklch(37.87% 0.138 317)
XYZxyz(8.1683, 4.7163, 16.0997)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2271 #357122
analogous
#372271 #5E2271 #71225D
triadic
#5E2271 #715E22 #22715E
tetradic
#5E2271 #713722 #357122 #225D71
square
#5E2271 #713722 #357122 #225D71
split-complementary
#5E2271 #5D7122 #227137
monochromatic
#140718 #371442 #5E2271 #8530A0 #A846C7

Accessibility & contrast

On white

10.81
#5E2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5E2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2271
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2271#FFFFFF#000000##FFFFFF
##5E22711.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A73
Deuteranopia (green-blind)
#243F6F
Tritanopia (blue-blind)
#5D3146
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e2271;
/* rgb */ color: rgb(94, 34, 113);
/* oklch */ color: oklch(37.9% 0.138 317.0);
Tailwind
colors: {
  custom: {
    50: '#8e629a',
    500: '#5e2271',
    950: '#000000',
  },
}
SCSS
$custom: #5e2271;
$custom-light: #8e629a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2271",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 285.57,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3787,
    "c": 0.1378,
    "h": 317
  },
  "luminance": 0.04716
}

Semantic roles & 50–950 ramp

primary
#5E2271
secondary
#60A44A
accent
#DD4B6E
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5E2271

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

Preview Lab → · Contrast checker → · Palette generator →

#5E2271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva