#5B27AA#5B27AA

#5B27AA is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.192 H 294.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5B27AA
RGBrgb(91, 39, 170)
HSLhsl(264, 63%, 41%)
HSVhsv(264, 77%, 67%)
CMYKcmyk(46.5%, 77.1%, 0%, 33.3%)
CIE-LABlab(30.82, 51.03, -60.87)
CIE-LCHlch(30.82, 79.43, 309.98°)
OKLaboklab(42.68% 0.0808 -0.1745)
OKLCHoklch(42.68% 0.192 294.9)
XYZxyz(12.2936, 6.5771, 38.6442)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B27AA #76AA27
analogous
#2734AA #5B27AA #9C27AA
triadic
#5B27AA #AA5B27 #27AA5B
tetradic
#5B27AA #AA2734 #76AA27 #27AA9C
square
#5B27AA #AA2734 #76AA27 #27AA9C
split-complementary
#5B27AA #AA9C27 #34AA27
monochromatic
#261046 #401C78 #5B27AA #783CD2 #9A6EDE

Accessibility & contrast

On white

9.07
#5B27AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5B27AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B27AA
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B27AA#FFFFFF#000000##FFFFFF
##5B27AA1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#444B67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b27aa;
/* rgb */ color: rgb(91, 39, 170);
/* oklch */ color: oklch(42.7% 0.192 294.9);
Tailwind
colors: {
  custom: {
    50: '#9167c4',
    500: '#5b27aa',
    950: '#000000',
  },
}
SCSS
$custom: #5b27aa;
$custom-light: #9167c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b27aa",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 263.817,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42675,
    "c": 0.19232,
    "h": 294.9
  },
  "luminance": 0.06577
}

Semantic roles & 50–950 ramp

primary
#5B27AA
secondary
#A0C469
accent
#E642A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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