#5427A2#5427A2

#5427A2 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.183 H 293.3°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5427A2
RGBrgb(84, 39, 162)
HSLhsl(262, 61%, 39%)
HSVhsv(262, 76%, 64%)
CMYKcmyk(48.1%, 75.9%, 0%, 36.5%)
CIE-LABlab(29.27, 47.80, -58.62)
CIE-LCHlch(29.27, 75.64, 309.19°)
OKLaboklab(41.18% 0.0724 -0.1681)
OKLCHoklch(41.18% 0.183 293.3)
XYZxyz(10.9015, 5.9441, 34.7484)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5427A2 #75A227
analogous
#2738A2 #5427A2 #9227A2
triadic
#5427A2 #A25427 #27A254
tetradic
#5427A2 #A22738 #75A227 #27A292
square
#5427A2 #A22738 #75A227 #27A292
split-complementary
#5427A2 #A29227 #38A227
monochromatic
#210F3F #3A1B71 #5427A2 #6F37CF #9269DB

Accessibility & contrast

On white

9.59
#5427A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5427A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5427A2
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5427A2#FFFFFF#000000##FFFFFF
##5427A21.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#3C4863
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5427a2;
/* rgb */ color: rgb(84, 39, 162);
/* oklch */ color: oklch(41.2% 0.183 293.3);
Tailwind
colors: {
  custom: {
    50: '#8c66bf',
    500: '#5427a2',
    950: '#000000',
  },
}
SCSS
$custom: #5427a2;
$custom-light: #8c66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5427a2",
  "rgb": {
    "r": 84,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 261.951,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41176,
    "c": 0.18306,
    "h": 293.3
  },
  "luminance": 0.05944
}

Semantic roles & 50–950 ramp

primary
#5427A2
secondary
#9FC164
accent
#E443A9
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5427A2

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

Preview Lab → · Contrast checker → · Palette generator →

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