#5C277A#5C277A

#5C277A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.139 H 310.9°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#5C277A
RGBrgb(92, 39, 122)
HSLhsl(278, 52%, 32%)
HSVhsv(278, 68%, 48%)
CMYKcmyk(24.6%, 68%, 0%, 52.2%)
CIE-LABlab(27.11, 39.11, -37.33)
CIE-LCHlch(27.11, 54.07, 316.33°)
OKLaboklab(38.86% 0.0913 -0.1053)
OKLCHoklch(38.86% 0.139 310.9)
XYZxyz(8.6513, 5.1317, 18.9434)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C277A #457A27
analogous
#33277A #5C277A #7A276F
triadic
#5C277A #7A5C27 #277A5C
tetradic
#5C277A #7A3327 #457A27 #276F7A
square
#5C277A #7A3327 #457A27 #276F7A
split-complementary
#5C277A #6F7A27 #277A33
monochromatic
#16091D #39184C #5C277A #7F36A8 #9E53C8

Accessibility & contrast

On white

10.36
#5C277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5C277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C277A
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C277A#FFFFFF#000000##FFFFFF
##5C277A1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#1D4178
Tritanopia (blue-blind)
#58384D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c277a;
/* rgb */ color: rgb(92, 39, 122);
/* oklch */ color: oklch(38.9% 0.139 310.9);
Tailwind
colors: {
  custom: {
    50: '#8d65a1',
    500: '#5c277a',
    950: '#000000',
  },
}
SCSS
$custom: #5c277a;
$custom-light: #8d65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c277a",
  "rgb": {
    "r": 92,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 278.313,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38864,
    "c": 0.13937,
    "h": 310.9
  },
  "luminance": 0.05131
}

Semantic roles & 50–950 ramp

primary
#5C277A
secondary
#72AC51
accent
#DB4D80
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5C277A

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

Preview Lab → · Contrast checker → · Palette generator →

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