#5C2255#5C2255

#5C2255 is a dark, moderate purple. Relative luminance 0.041; OKLCH L 35.8% C 0.109 H 332.5°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#5C2255
RGBrgb(92, 34, 85)
HSLhsl(307, 46%, 25%)
HSVhsv(307, 63%, 36%)
CMYKcmyk(0%, 63%, 7.6%, 63.9%)
CIE-LABlab(23.92, 33.71, -18.39)
CIE-LCHlch(23.92, 38.40, 331.38°)
OKLaboklab(35.82% 0.0967 -0.0502)
OKLCHoklch(35.82% 0.109 332.5)
XYZxyz(6.6254, 4.0757, 9.0303)
Luminance0.0408 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2255 #225C29
analogous
#46225C #5C2255 #5C2238
triadic
#5C2255 #555C22 #22555C
tetradic
#5C2255 #5C4622 #225C29 #22385C
square
#5C2255 #5C4622 #225C29 #22385C
split-complementary
#5C2255 #385C22 #225C46
monochromatic
#160815 #2F112C #5C2255 #89337E #B543A8

Accessibility & contrast

On white

11.57
#5C2255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5C2255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2255
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2255#FFFFFF#000000##FFFFFF
##5C22551.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203457
Deuteranopia (green-blind)
#323C53
Tritanopia (blue-blind)
#602738
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5c2255;
/* rgb */ color: rgb(92, 34, 85);
/* oklch */ color: oklch(35.8% 0.109 332.5);
Tailwind
colors: {
  custom: {
    50: '#8c6185',
    500: '#5c2255',
    950: '#000000',
  },
}
SCSS
$custom: #5c2255;
$custom-light: #8c6185;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2255",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 307.241,
    "s": 46.032,
    "l": 24.706
  },
  "oklch": {
    "l": 0.35821,
    "c": 0.10894,
    "h": 332.5
  },
  "luminance": 0.04075
}

Semantic roles & 50–950 ramp

primary
#5C2255
secondary
#4A9052
accent
#D66252
background
#F8F5F8
surface
#F0EAEF
border
#CBC6CA
text
#0C050B
muted
#7D797C

Preview Lab

Preview with #5C2255

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

Preview Lab → · Contrast checker → · Palette generator →

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