#5427A5#5427A5

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

Color values

HEX#5427A5
RGBrgb(84, 39, 165)
HSLhsl(261, 62%, 40%)
HSVhsv(261, 76%, 65%)
CMYKcmyk(49.1%, 76.4%, 0%, 35.3%)
CIE-LABlab(29.54, 48.61, -59.99)
CIE-LCHlch(29.54, 77.21, 309.02°)
OKLaboklab(41.45% 0.0716 -0.1722)
OKLCHoklch(41.45% 0.186 292.6)
XYZxyz(11.1713, 6.0521, 36.1696)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5427A5 #78A527
analogous
#2739A5 #5427A5 #9327A5
triadic
#5427A5 #A55427 #27A554
tetradic
#5427A5 #A52739 #78A527 #27A593
square
#5427A5 #A52739 #78A527 #27A593
split-complementary
#5427A5 #A59327 #39A527
monochromatic
#221042 #3B1B74 #5427A5 #6F39D0 #936ADC

Accessibility & contrast

On white

9.50
#5427A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5427A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5427A5
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5427A5#FFFFFF#000000##FFFFFF
##5427A51.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#3A4965
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5427a5;
/* rgb */ color: rgb(84, 39, 165);
/* oklch */ color: oklch(41.5% 0.186 292.6);
Tailwind
colors: {
  custom: {
    50: '#8c66c1',
    500: '#5427a5',
    950: '#000000',
  },
}
SCSS
$custom: #5427a5;
$custom-light: #8c66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5427a5",
  "rgb": {
    "r": 84,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 261.429,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.41451,
    "c": 0.18644,
    "h": 292.6
  },
  "luminance": 0.06052
}

Semantic roles & 50–950 ramp

primary
#5427A5
secondary
#A1C266
accent
#E543AB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5427A5

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

Preview Lab → · Contrast checker → · Palette generator →

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