#5B279E#5B279E

#5B279E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.179 H 297.9°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5B279E
RGBrgb(91, 39, 158)
HSLhsl(266, 60%, 39%)
HSVhsv(266, 75%, 62%)
CMYKcmyk(42.4%, 75.3%, 0%, 38%)
CIE-LABlab(29.77, 47.91, -55.34)
CIE-LCHlch(29.77, 73.20, 310.88°)
OKLaboklab(41.61% 0.084 -0.1583)
OKLCHoklch(41.61% 0.179 297.9)
XYZxyz(11.2099, 6.1436, 32.9364)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B279E #6A9E27
analogous
#272F9E #5B279E #96279E
triadic
#5B279E #9E5B27 #279E5B
tetradic
#5B279E #9E272F #6A9E27 #279E96
square
#5B279E #9E272F #6A9E27 #279E96
split-complementary
#5B279E #9E9627 #2F9E27
monochromatic
#220F3C #3F1B6D #5B279E #7835CD #9866D9

Accessibility & contrast

On white

9.42
#5B279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5B279E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B279E
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B279E#FFFFFF#000000##FFFFFF
##5B279E1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#4A4661
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b279e;
/* rgb */ color: rgb(91, 39, 158);
/* oklch */ color: oklch(41.6% 0.179 297.9);
Tailwind
colors: {
  custom: {
    50: '#9067bc',
    500: '#5b279e',
    950: '#000000',
  },
}
SCSS
$custom: #5b279e;
$custom-light: #9067bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b279e",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 266.218,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41612,
    "c": 0.17916,
    "h": 297.9
  },
  "luminance": 0.06144
}

Semantic roles & 50–950 ramp

primary
#5B279E
secondary
#96BF62
accent
#E4449E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B279E

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

Preview Lab → · Contrast checker → · Palette generator →

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