#5C2271#5C2271

#5C2271 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.6% C 0.137 H 315.7°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#5C2271
RGBrgb(92, 34, 113)
HSLhsl(284, 54%, 29%)
HSVhsv(284, 70%, 44%)
CMYKcmyk(18.6%, 69.9%, 0%, 55.7%)
CIE-LABlab(25.60, 39.50, -34.02)
CIE-LCHlch(25.60, 52.13, 319.27°)
OKLaboklab(37.58% 0.0981 -0.0956)
OKLCHoklch(37.58% 0.137 315.7)
XYZxyz(7.9658, 4.6119, 16.0902)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2271 #377122
analogous
#352271 #5C2271 #71225F
triadic
#5C2271 #715C22 #22715C
tetradic
#5C2271 #713522 #377122 #225F71
square
#5C2271 #713522 #377122 #225F71
split-complementary
#5C2271 #5F7122 #227135
monochromatic
#130718 #361442 #5C2271 #8230A0 #A546C7

Accessibility & contrast

On white

10.92
#5C2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5C2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2271
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2271#FFFFFF#000000##FFFFFF
##5C22711.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#213E6F
Tritanopia (blue-blind)
#5B3146
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c2271;
/* rgb */ color: rgb(92, 34, 113);
/* oklch */ color: oklch(37.6% 0.137 315.7);
Tailwind
colors: {
  custom: {
    50: '#8d629a',
    500: '#5c2271',
    950: '#000000',
  },
}
SCSS
$custom: #5c2271;
$custom-light: #8d629a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2271",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 284.051,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37582,
    "c": 0.13692,
    "h": 315.7
  },
  "luminance": 0.04612
}

Semantic roles & 50–950 ramp

primary
#5C2271
secondary
#62A44A
accent
#DD4B72
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5C2271

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

Preview Lab → · Contrast checker → · Palette generator →

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