#5427A6#5427A6

#5427A6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.188 H 292.3°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5427A6
RGBrgb(84, 39, 166)
HSLhsl(261, 62%, 40%)
HSVhsv(261, 77%, 65%)
CMYKcmyk(49.4%, 76.5%, 0%, 34.9%)
CIE-LABlab(29.63, 48.88, -60.44)
CIE-LCHlch(29.63, 77.74, 308.96°)
OKLaboklab(41.54% 0.0713 -0.1735)
OKLCHoklch(41.54% 0.188 292.3)
XYZxyz(11.2627, 6.0886, 36.6508)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5427A6 #79A627
analogous
#2739A6 #5427A6 #9327A6
triadic
#5427A6 #A65427 #27A654
tetradic
#5427A6 #A62739 #79A627 #27A693
square
#5427A6 #A62739 #79A627 #27A693
split-complementary
#5427A6 #A69327 #39A627
monochromatic
#221043 #3B1B74 #5427A6 #6F3AD1 #936BDC

Accessibility & contrast

On white

9.47
#5427A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5427A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5427A6
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5427A6#FFFFFF#000000##FFFFFF
##5427A61.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#394A65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5427a6;
/* rgb */ color: rgb(84, 39, 166);
/* oklch */ color: oklch(41.5% 0.188 292.3);
Tailwind
colors: {
  custom: {
    50: '#8d66c1',
    500: '#5427a6',
    950: '#000000',
  },
}
SCSS
$custom: #5427a6;
$custom-light: #8d66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5427a6",
  "rgb": {
    "r": 84,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 261.26,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41543,
    "c": 0.18757,
    "h": 292.3
  },
  "luminance": 0.06089
}

Semantic roles & 50–950 ramp

primary
#5427A6
secondary
#A2C366
accent
#E543AC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5427A6

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

Preview Lab → · Contrast checker → · Palette generator →

#5427A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva