#5B277C#5B277C

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

Color values

HEX#5B277C
RGBrgb(91, 39, 124)
HSLhsl(277, 52%, 32%)
HSVhsv(277, 69%, 49%)
CMYKcmyk(26.6%, 68.5%, 0%, 51.4%)
CIE-LABlab(27.10, 39.35, -38.61)
CIE-LCHlch(27.10, 55.12, 315.55°)
OKLaboklab(38.88% 0.0897 -0.1091)
OKLCHoklch(38.88% 0.141 309.4)
XYZxyz(8.6773, 5.1306, 19.5981)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B277C #487C27
analogous
#31277C #5B277C #7C2773
triadic
#5B277C #7C5B27 #277C5B
tetradic
#5B277C #7C3127 #487C27 #27737C
square
#5B277C #7C3127 #487C27 #27737C
split-complementary
#5B277C #737C27 #277C31
monochromatic
#170A1F #39184D #5B277C #7D36AB #9C54C9

Accessibility & contrast

On white

10.37
#5B277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B277C
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B277C#FFFFFF#000000##FFFFFF
##5B277C1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#19417A
Tritanopia (blue-blind)
#56394E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b277c;
/* rgb */ color: rgb(91, 39, 124);
/* oklch */ color: oklch(38.9% 0.141 309.4);
Tailwind
colors: {
  custom: {
    50: '#8d65a2',
    500: '#5b277c',
    950: '#000000',
  },
}
SCSS
$custom: #5b277c;
$custom-light: #8d65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b277c",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 276.706,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38876,
    "c": 0.14127,
    "h": 309.4
  },
  "luminance": 0.0513
}

Semantic roles & 50–950 ramp

primary
#5B277C
secondary
#75AE51
accent
#DC4C84
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5B277C

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

Preview Lab → · Contrast checker → · Palette generator →

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