#5B277E#5B277E

#5B277E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.144 H 308.6°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#5B277E
RGBrgb(91, 39, 126)
HSLhsl(276, 53%, 32%)
HSVhsv(276, 69%, 49%)
CMYKcmyk(27.8%, 69%, 0%, 50.6%)
CIE-LABlab(27.25, 39.83, -39.64)
CIE-LCHlch(27.25, 56.19, 315.14°)
OKLaboklab(39.02% 0.0896 -0.1121)
OKLCHoklch(39.02% 0.144 308.6)
XYZxyz(8.8050, 5.1817, 20.2709)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B277E #4A7E27
analogous
#30277E #5B277E #7E2776
triadic
#5B277E #7E5B27 #277E5B
tetradic
#5B277E #7E3027 #4A7E27 #27767E
square
#5B277E #7E3027 #4A7E27 #27767E
split-complementary
#5B277E #767E27 #277E30
monochromatic
#170A21 #39194F #5B277E #7D35AD #9B55CA

Accessibility & contrast

On white

10.31
#5B277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5B277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B277E
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B277E#FFFFFF#000000##FFFFFF
##5B277E1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#17417C
Tritanopia (blue-blind)
#56394F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b277e;
/* rgb */ color: rgb(91, 39, 126);
/* oklch */ color: oklch(39.0% 0.144 308.6);
Tailwind
colors: {
  custom: {
    50: '#8d65a4',
    500: '#5b277e',
    950: '#000000',
  },
}
SCSS
$custom: #5b277e;
$custom-light: #8d65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b277e",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 275.862,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39024,
    "c": 0.14351,
    "h": 308.6
  },
  "luminance": 0.05182
}

Semantic roles & 50–950 ramp

primary
#5B277E
secondary
#77AF52
accent
#DC4C86
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5B277E

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

Preview Lab → · Contrast checker → · Palette generator →

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