#5B27A6#5B27A6

#5B27A6 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.188 H 295.8°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#5B27A6
RGBrgb(91, 39, 166)
HSLhsl(265, 62%, 40%)
HSVhsv(265, 77%, 65%)
CMYKcmyk(45.2%, 76.5%, 0%, 34.9%)
CIE-LABlab(30.47, 49.99, -59.05)
CIE-LCHlch(30.47, 77.37, 310.25°)
OKLaboklab(42.32% 0.0819 -0.1691)
OKLCHoklch(42.32% 0.188 295.8)
XYZxyz(11.9210, 6.4281, 36.6817)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B27A6 #72A627
analogous
#2732A6 #5B27A6 #9A27A6
triadic
#5B27A6 #A65B27 #27A65B
tetradic
#5B27A6 #A62732 #72A627 #27A69A
square
#5B27A6 #A62732 #72A627 #27A69A
split-complementary
#5B27A6 #A69A27 #32A627
monochromatic
#251043 #401B74 #5B27A6 #773AD1 #996BDC

Accessibility & contrast

On white

9.19
#5B27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5B27A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B27A6
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B27A6#FFFFFF#000000##FFFFFF
##5B27A61.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#464965
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b27a6;
/* rgb */ color: rgb(91, 39, 166);
/* oklch */ color: oklch(42.3% 0.188 295.8);
Tailwind
colors: {
  custom: {
    50: '#9167c1',
    500: '#5b27a6',
    950: '#000000',
  },
}
SCSS
$custom: #5b27a6;
$custom-light: #9167c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b27a6",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 264.567,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42315,
    "c": 0.18795,
    "h": 295.8
  },
  "luminance": 0.06428
}

Semantic roles & 50–950 ramp

primary
#5B27A6
secondary
#9DC366
accent
#E543A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5B27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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