#5418A1#5418A1

#5418A1 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.6% C 0.196 H 295.3°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#5418A1
RGBrgb(84, 24, 161)
HSLhsl(266, 74%, 36%)
HSVhsv(266, 85%, 63%)
CMYKcmyk(47.8%, 85.1%, 0%, 36.9%)
CIE-LABlab(27.05, 53.70, -61.66)
CIE-LCHlch(27.05, 81.77, 311.05°)
OKLaboklab(39.6% 0.0837 -0.1769)
OKLCHoklch(39.6% 0.196 295.3)
XYZxyz(10.4141, 5.1110, 34.1491)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5418A1 #65A118
analogous
#1821A1 #5418A1 #9918A1
triadic
#5418A1 #A15418 #18A154
tetradic
#5418A1 #A11821 #65A118 #18A199
square
#5418A1 #A11821 #65A118 #18A199
split-complementary
#5418A1 #A19918 #21A118
monochromatic
#1C0836 #38106C #5418A1 #7020D6 #904FE5

Accessibility & contrast

On white

10.38
#5418A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5418A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5418A1
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5418A1#FFFFFF#000000##FFFFFF
##5418A11.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A5
Deuteranopia (green-blind)
#003E9F
Tritanopia (blue-blind)
#3D425F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5418a1;
/* rgb */ color: rgb(84, 24, 161);
/* oklch */ color: oklch(39.6% 0.196 295.3);
Tailwind
colors: {
  custom: {
    50: '#8d5fbe',
    500: '#5418a1',
    950: '#000000',
  },
}
SCSS
$custom: #5418a1;
$custom-light: #8d5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5418a1",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 266.277,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39603,
    "c": 0.1957,
    "h": 295.3
  },
  "luminance": 0.05111
}

Semantic roles & 50–950 ramp

primary
#5418A1
secondary
#92C74E
accent
#F1379F
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5418A1

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

Preview Lab → · Contrast checker → · Palette generator →

#5418A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva