#541887#541887

#541887 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.169 H 303.2°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#541887
RGBrgb(84, 24, 135)
HSLhsl(272, 70%, 31%)
HSVhsv(272, 82%, 53%)
CMYKcmyk(37.8%, 82.2%, 0%, 47.1%)
CIE-LABlab(24.60, 47.32, -49.63)
CIE-LCHlch(24.60, 68.58, 313.63°)
OKLaboklab(37.16% 0.0926 -0.1417)
OKLCHoklch(37.16% 0.169 303.2)
XYZxyz(8.3549, 4.2874, 23.3044)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541887 #4B8718
analogous
#1C1887 #541887 #871882
triadic
#541887 #875418 #188754
tetradic
#541887 #871C18 #4B8718 #188287
square
#541887 #871C18 #4B8718 #188287
split-complementary
#541887 #828718 #18871C
monochromatic
#13061F #340F53 #541887 #7421BB #933DDC

Accessibility & contrast

On white

11.31
#541887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#541887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541887
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541887#FFFFFF#000000##FFFFFF
##5418871.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#493650
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541887;
/* rgb */ color: rgb(84, 24, 135);
/* oklch */ color: oklch(37.2% 0.169 303.2);
Tailwind
colors: {
  custom: {
    50: '#8a5dab',
    500: '#541887',
    950: '#000000',
  },
}
SCSS
$custom: #541887;
$custom-light: #8a5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#541887",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 272.432,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37163,
    "c": 0.16924,
    "h": 303.2
  },
  "luminance": 0.04287
}

Semantic roles & 50–950 ramp

primary
#541887
secondary
#78BB40
accent
#ED3B8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541887

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

Preview Lab → · Contrast checker → · Palette generator →

#541887 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva