#5B27AF#5B27AF

#5B27AF is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.198 H 293.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5B27AF
RGBrgb(91, 39, 175)
HSLhsl(263, 64%, 42%)
HSVhsv(263, 78%, 69%)
CMYKcmyk(48%, 77.7%, 0%, 31.4%)
CIE-LABlab(31.28, 52.34, -63.13)
CIE-LCHlch(31.28, 82.00, 309.67°)
OKLaboklab(43.13% 0.0794 -0.1811)
OKLCHoklch(43.13% 0.198 293.7)
XYZxyz(12.7756, 6.7699, 41.1827)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B27AF #7BAF27
analogous
#2737AF #5B27AF #9F27AF
triadic
#5B27AF #AF5B27 #27AF5B
tetradic
#5B27AF #AF2737 #7BAF27 #27AF9F
square
#5B27AF #AF2737 #7BAF27 #27AF9F
split-complementary
#5B27AF #AF9F27 #37AF27
monochromatic
#27114B #411C7D #5B27AF #783FD4 #9B71DF

Accessibility & contrast

On white

8.92
#5B27AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5B27AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B27AF
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B27AF#FFFFFF#000000##FFFFFF
##5B27AF1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#414D6A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b27af;
/* rgb */ color: rgb(91, 39, 175);
/* oklch */ color: oklch(43.1% 0.198 293.7);
Tailwind
colors: {
  custom: {
    50: '#9267c8',
    500: '#5b27af',
    950: '#000000',
  },
}
SCSS
$custom: #5b27af;
$custom-light: #9267c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b27af",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 262.941,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4313,
    "c": 0.19776,
    "h": 293.7
  },
  "luminance": 0.0677
}

Semantic roles & 50–950 ramp

primary
#5B27AF
secondary
#A4C66B
accent
#E741A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B27AF

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

Preview Lab → · Contrast checker → · Palette generator →

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