#5B279D#5B279D

#5B279D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.178 H 298.2°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5B279D
RGBrgb(91, 39, 157)
HSLhsl(266, 60%, 38%)
HSVhsv(266, 75%, 62%)
CMYKcmyk(42%, 75.2%, 0%, 38.4%)
CIE-LABlab(29.69, 47.65, -54.87)
CIE-LCHlch(29.69, 72.67, 310.97°)
OKLaboklab(41.53% 0.0842 -0.1569)
OKLCHoklch(41.53% 0.178 298.2)
XYZxyz(11.1241, 6.1093, 32.4849)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B279D #699D27
analogous
#272E9D #5B279D #96279D
triadic
#5B279D #9D5B27 #279D5B
tetradic
#5B279D #9D272E #699D27 #279D96
square
#5B279D #9D272E #699D27 #279D96
split-complementary
#5B279D #9D9627 #2E9D27
monochromatic
#220F3B #3F1B6C #5B279D #7835CD #9866D9

Accessibility & contrast

On white

9.45
#5B279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5B279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B279D
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B279D#FFFFFF#000000##FFFFFF
##5B279D1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#4B4660
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b279d;
/* rgb */ color: rgb(91, 39, 157);
/* oklch */ color: oklch(41.5% 0.178 298.2);
Tailwind
colors: {
  custom: {
    50: '#9066bb',
    500: '#5b279d',
    950: '#000000',
  },
}
SCSS
$custom: #5b279d;
$custom-light: #9066bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b279d",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 266.441,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41525,
    "c": 0.17806,
    "h": 298.2
  },
  "luminance": 0.0611
}

Semantic roles & 50–950 ramp

primary
#5B279D
secondary
#95BF61
accent
#E3449D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B279D

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

Preview Lab → · Contrast checker → · Palette generator →

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