#5B27A8#5B27A8

#5B27A8 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.190 H 295.3°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#5B27A8
RGBrgb(91, 39, 168)
HSLhsl(264, 62%, 41%)
HSVhsv(264, 77%, 66%)
CMYKcmyk(45.8%, 76.8%, 0%, 34.1%)
CIE-LABlab(30.65, 50.51, -59.96)
CIE-LCHlch(30.65, 78.40, 310.11°)
OKLaboklab(42.49% 0.0814 -0.1718)
OKLCHoklch(42.49% 0.19 295.3)
XYZxyz(12.1059, 6.5020, 37.6554)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B27A8 #74A827
analogous
#2733A8 #5B27A8 #9B27A8
triadic
#5B27A8 #A85B27 #27A85B
tetradic
#5B27A8 #A82733 #74A827 #27A89B
square
#5B27A8 #A82733 #74A827 #27A89B
split-complementary
#5B27A8 #A89B27 #33A827
monochromatic
#251045 #401B76 #5B27A8 #773BD1 #9A6CDD

Accessibility & contrast

On white

9.13
#5B27A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5B27A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B27A8
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B27A8#FFFFFF#000000##FFFFFF
##5B27A81.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#454A66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b27a8;
/* rgb */ color: rgb(91, 39, 168);
/* oklch */ color: oklch(42.5% 0.190 295.3);
Tailwind
colors: {
  custom: {
    50: '#9167c3',
    500: '#5b27a8',
    950: '#000000',
  },
}
SCSS
$custom: #5b27a8;
$custom-light: #9167c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b27a8",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 264.186,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42494,
    "c": 0.19014,
    "h": 295.3
  },
  "luminance": 0.06502
}

Semantic roles & 50–950 ramp

primary
#5B27A8
secondary
#9EC367
accent
#E542A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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