#5B27A2#5B27A2

#5B27A2 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.184 H 296.9°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5B27A2
RGBrgb(91, 39, 162)
HSLhsl(265, 61%, 39%)
HSVhsv(265, 76%, 64%)
CMYKcmyk(43.8%, 75.9%, 0%, 36.5%)
CIE-LABlab(30.12, 48.95, -57.20)
CIE-LCHlch(30.12, 75.29, 310.55°)
OKLaboklab(41.96% 0.083 -0.1637)
OKLCHoklch(41.96% 0.184 296.9)
XYZxyz(11.5598, 6.2836, 34.7792)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B27A2 #6EA227
analogous
#2731A2 #5B27A2 #9927A2
triadic
#5B27A2 #A25B27 #27A25B
tetradic
#5B27A2 #A22731 #6EA227 #27A299
square
#5B27A2 #A22731 #6EA227 #27A299
split-complementary
#5B27A2 #A29927 #31A227
monochromatic
#240F3F #3F1B71 #5B27A2 #7737CF #9969DB

Accessibility & contrast

On white

9.31
#5B27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5B27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B27A2
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B27A2#FFFFFF#000000##FFFFFF
##5B27A21.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#484863
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b27a2;
/* rgb */ color: rgb(91, 39, 162);
/* oklch */ color: oklch(42.0% 0.184 296.9);
Tailwind
colors: {
  custom: {
    50: '#9067bf',
    500: '#5b27a2',
    950: '#000000',
  },
}
SCSS
$custom: #5b27a2;
$custom-light: #9067bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b27a2",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 265.366,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41961,
    "c": 0.18356,
    "h": 296.9
  },
  "luminance": 0.06284
}

Semantic roles & 50–950 ramp

primary
#5B27A2
secondary
#9AC164
accent
#E443A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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