#5B277A#5B277A

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

Color values

HEX#5B277A
RGBrgb(91, 39, 122)
HSLhsl(278, 52%, 32%)
HSVhsv(278, 68%, 48%)
CMYKcmyk(25.4%, 68%, 0%, 52.2%)
CIE-LABlab(26.96, 38.87, -37.57)
CIE-LCHlch(26.96, 54.06, 315.97°)
OKLaboklab(38.73% 0.0899 -0.106)
OKLCHoklch(38.73% 0.139 310.3)
XYZxyz(8.5521, 5.0805, 18.9387)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B277A #467A27
analogous
#31277A #5B277A #7A2770
triadic
#5B277A #7A5B27 #277A5B
tetradic
#5B277A #7A3127 #467A27 #27707A
square
#5B277A #7A3127 #467A27 #27707A
split-complementary
#5B277A #707A27 #277A31
monochromatic
#16091D #38184C #5B277A #7E36A8 #9C53C8

Accessibility & contrast

On white

10.42
#5B277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5B277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B277A
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B277A#FFFFFF#000000##FFFFFF
##5B277A1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#1C4178
Tritanopia (blue-blind)
#57384D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b277a;
/* rgb */ color: rgb(91, 39, 122);
/* oklch */ color: oklch(38.7% 0.139 310.3);
Tailwind
colors: {
  custom: {
    50: '#8c65a1',
    500: '#5b277a',
    950: '#000000',
  },
}
SCSS
$custom: #5b277a;
$custom-light: #8c65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b277a",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 277.59,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3873,
    "c": 0.13902,
    "h": 310.3
  },
  "luminance": 0.0508
}

Semantic roles & 50–950 ramp

primary
#5B277A
secondary
#73AC51
accent
#DB4D82
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5B277A

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

Preview Lab → · Contrast checker → · Palette generator →

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