#5A27AA#5A27AA

#5A27AA is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.192 H 294.4°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#5A27AA
RGBrgb(90, 39, 170)
HSLhsl(263, 63%, 41%)
HSVhsv(263, 77%, 67%)
CMYKcmyk(47.1%, 77.1%, 0%, 33.3%)
CIE-LABlab(30.70, 50.88, -61.07)
CIE-LCHlch(30.70, 79.49, 309.80°)
OKLaboklab(42.56% 0.0793 -0.1751)
OKLCHoklch(42.56% 0.192 294.4)
XYZxyz(12.1957, 6.5266, 38.6396)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A27AA #77AA27
analogous
#2735AA #5A27AA #9B27AA
triadic
#5A27AA #AA5A27 #27AA5A
tetradic
#5A27AA #AA2735 #77AA27 #27AA9B
square
#5A27AA #AA2735 #77AA27 #27AA9B
split-complementary
#5A27AA #AA9B27 #35AA27
monochromatic
#251046 #401C78 #5A27AA #763CD2 #996EDE

Accessibility & contrast

On white

9.11
#5A27AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5A27AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A27AA
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A27AA#FFFFFF#000000##FFFFFF
##5A27AA1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#424B67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a27aa;
/* rgb */ color: rgb(90, 39, 170);
/* oklch */ color: oklch(42.6% 0.192 294.4);
Tailwind
colors: {
  custom: {
    50: '#9167c4',
    500: '#5a27aa',
    950: '#000000',
  },
}
SCSS
$custom: #5a27aa;
$custom-light: #9167c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a27aa",
  "rgb": {
    "r": 90,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 263.359,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42563,
    "c": 0.19226,
    "h": 294.4
  },
  "luminance": 0.06527
}

Semantic roles & 50–950 ramp

primary
#5A27AA
secondary
#A1C469
accent
#E642A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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