#5C27A2#5C27A2

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

Color values

HEX#5C27A2
RGBrgb(92, 39, 162)
HSLhsl(266, 61%, 39%)
HSVhsv(266, 76%, 64%)
CMYKcmyk(43.2%, 75.9%, 0%, 36.5%)
CIE-LABlab(30.24, 49.12, -56.99)
CIE-LCHlch(30.24, 75.24, 310.75°)
OKLaboklab(42.08% 0.0845 -0.1631)
OKLCHoklch(42.08% 0.184 297.4)
XYZxyz(11.6590, 6.3348, 34.7839)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C27A2 #6DA227
analogous
#272FA2 #5C27A2 #9A27A2
triadic
#5C27A2 #A25C27 #27A25C
tetradic
#5C27A2 #A2272F #6DA227 #27A29A
square
#5C27A2 #A2272F #6DA227 #27A29A
split-complementary
#5C27A2 #A29A27 #2FA227
monochromatic
#240F3F #401B71 #5C27A2 #7937CF #9A69DB

Accessibility & contrast

On white

9.26
#5C27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5C27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C27A2
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C27A2#FFFFFF#000000##FFFFFF
##5C27A21.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#4A4763
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c27a2;
/* rgb */ color: rgb(92, 39, 162);
/* oklch */ color: oklch(42.1% 0.184 297.4);
Tailwind
colors: {
  custom: {
    50: '#9167be',
    500: '#5c27a2',
    950: '#000000',
  },
}
SCSS
$custom: #5c27a2;
$custom-light: #9167be;
$custom-dark: #000000;
JSON
{
  "hex": "#5c27a2",
  "rgb": {
    "r": 92,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 265.854,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42077,
    "c": 0.18367,
    "h": 297.4
  },
  "luminance": 0.06335
}

Semantic roles & 50–950 ramp

primary
#5C27A2
secondary
#99C164
accent
#E4439F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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