#5C1279#5C1279

#5C1279 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.163 H 313.7°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#5C1279
RGBrgb(92, 18, 121)
HSLhsl(283, 74%, 27%)
HSVhsv(283, 85%, 47%)
CMYKcmyk(24%, 85.1%, 0%, 52.5%)
CIE-LABlab(23.96, 47.60, -41.77)
CIE-LCHlch(23.96, 63.33, 318.73°)
OKLaboklab(36.61% 0.1128 -0.1182)
OKLCHoklch(36.61% 0.163 313.7)
XYZxyz(8.0805, 4.0887, 18.4490)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1279 #2F7912
analogous
#291279 #5C1279 #791263
triadic
#5C1279 #795C12 #12795C
tetradic
#5C1279 #792912 #2F7912 #126379
square
#5C1279 #792912 #2F7912 #126379
split-complementary
#5C1279 #637912 #127929
monochromatic
#14041B #330A44 #5C1279 #851AAE #AB27DF

Accessibility & contrast

On white

11.55
#5C1279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1279
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1279#FFFFFF#000000##FFFFFF
##5C12791.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#033B77
Tritanopia (blue-blind)
#592C47
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5c1279;
/* rgb */ color: rgb(92, 18, 121);
/* oklch */ color: oklch(36.6% 0.163 313.7);
Tailwind
colors: {
  custom: {
    50: '#8e5ba0',
    500: '#5c1279',
    950: '#000000',
  },
}
SCSS
$custom: #5c1279;
$custom-light: #8e5ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1279",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 121
  },
  "hsl": {
    "h": 283.107,
    "s": 74.101,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36609,
    "c": 0.16341,
    "h": 313.7
  },
  "luminance": 0.04088
}

Semantic roles & 50–950 ramp

primary
#5C1279
secondary
#59AF38
accent
#F1376B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040F
muted
#7E797E

Preview Lab

Preview with #5C1279

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

Preview Lab → · Contrast checker → · Palette generator →

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