#5D27B0#5D27B0

#5D27B0 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.4% C 0.199 H 294.4°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5D27B0
RGBrgb(93, 39, 176)
HSLhsl(264, 64%, 42%)
HSVhsv(264, 78%, 69%)
CMYKcmyk(47.2%, 77.8%, 0%, 31%)
CIE-LABlab(31.61, 52.90, -63.17)
CIE-LCHlch(31.61, 82.40, 309.94°)
OKLaboklab(43.44% 0.0822 -0.1812)
OKLCHoklch(43.44% 0.199 294.4)
XYZxyz(13.0740, 6.9124, 41.7113)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D27B0 #7AB027
analogous
#2735B0 #5D27B0 #A227B0
triadic
#5D27B0 #B05D27 #27B05D
tetradic
#5D27B0 #B02735 #7AB027 #27B0A2
square
#5D27B0 #B02735 #7AB027 #27B0A2
split-complementary
#5D27B0 #B0A227 #35B027
monochromatic
#28114C #431C7E #5D27B0 #7A40D5 #9D72E0

Accessibility & contrast

On white

8.81
#5D27B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5D27B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D27B0
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D27B0#FFFFFF#000000##FFFFFF
##5D27B01.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#444D6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d27b0;
/* rgb */ color: rgb(93, 39, 176);
/* oklch */ color: oklch(43.4% 0.199 294.4);
Tailwind
colors: {
  custom: {
    50: '#9368c9',
    500: '#5d27b0',
    950: '#000000',
  },
}
SCSS
$custom: #5d27b0;
$custom-light: #9368c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d27b0",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 176
  },
  "hsl": {
    "h": 263.65,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43442,
    "c": 0.19895,
    "h": 294.4
  },
  "luminance": 0.06913
}

Semantic roles & 50–950 ramp

primary
#5D27B0
secondary
#A3C76C
accent
#E741A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D27B0

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

Preview Lab → · Contrast checker → · Palette generator →

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