#5B277F#5B277F

#5B277F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.145 H 308.2°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#5B277F
RGBrgb(91, 39, 127)
HSLhsl(275, 53%, 33%)
HSVhsv(275, 69%, 50%)
CMYKcmyk(28.3%, 69.3%, 0%, 50.2%)
CIE-LABlab(27.32, 40.08, -40.15)
CIE-LCHlch(27.32, 56.73, 314.95°)
OKLaboklab(39.1% 0.0895 -0.1136)
OKLCHoklch(39.1% 0.145 308.2)
XYZxyz(8.8699, 5.2076, 20.6125)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B277F #4B7F27
analogous
#2F277F #5B277F #7F2777
triadic
#5B277F #7F5B27 #277F5B
tetradic
#5B277F #7F2F27 #4B7F27 #27777F
square
#5B277F #7F2F27 #4B7F27 #27777F
split-complementary
#5B277F #777F27 #277F2F
monochromatic
#180A21 #391950 #5B277F #7D35AE #9B55CB

Accessibility & contrast

On white

10.29
#5B277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B277F
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B277F#FFFFFF#000000##FFFFFF
##5B277F1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#15417D
Tritanopia (blue-blind)
#553A4F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b277f;
/* rgb */ color: rgb(91, 39, 127);
/* oklch */ color: oklch(39.1% 0.145 308.2);
Tailwind
colors: {
  custom: {
    50: '#8d65a5',
    500: '#5b277f',
    950: '#000000',
  },
}
SCSS
$custom: #5b277f;
$custom-light: #8d65a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b277f",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 275.455,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39098,
    "c": 0.14462,
    "h": 308.2
  },
  "luminance": 0.05207
}

Semantic roles & 50–950 ramp

primary
#5B277F
secondary
#78B052
accent
#DC4B87
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5B277F

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

Preview Lab → · Contrast checker → · Palette generator →

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