#5B279F#5B279F

#5B279F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.180 H 297.7°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5B279F
RGBrgb(91, 39, 159)
HSLhsl(266, 61%, 39%)
HSVhsv(266, 75%, 62%)
CMYKcmyk(42.8%, 75.5%, 0%, 37.6%)
CIE-LABlab(29.86, 48.17, -55.81)
CIE-LCHlch(29.86, 73.72, 310.80°)
OKLaboklab(41.7% 0.0837 -0.1596)
OKLCHoklch(41.7% 0.18 297.7)
XYZxyz(11.2963, 6.1782, 33.3915)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B279F #6B9F27
analogous
#272F9F #5B279F #97279F
triadic
#5B279F #9F5B27 #279F5B
tetradic
#5B279F #9F272F #6B9F27 #279F97
square
#5B279F #9F272F #6B9F27 #279F97
split-complementary
#5B279F #9F9727 #2F9F27
monochromatic
#230F3D #3F1B6E #5B279F #7736CE #9967DA

Accessibility & contrast

On white

9.39
#5B279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5B279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B279F
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B279F#FFFFFF#000000##FFFFFF
##5B279F1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#4A4661
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b279f;
/* rgb */ color: rgb(91, 39, 159);
/* oklch */ color: oklch(41.7% 0.180 297.7);
Tailwind
colors: {
  custom: {
    50: '#9067bc',
    500: '#5b279f',
    950: '#000000',
  },
}
SCSS
$custom: #5b279f;
$custom-light: #9067bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b279f",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 266,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41699,
    "c": 0.18026,
    "h": 297.7
  },
  "luminance": 0.06178
}

Semantic roles & 50–950 ramp

primary
#5B279F
secondary
#97C062
accent
#E4449F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B279F

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

Preview Lab → · Contrast checker → · Palette generator →

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