#541687#541687

#541687 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.171 H 303.4°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#541687
RGBrgb(84, 22, 135)
HSLhsl(273, 72%, 31%)
HSVhsv(273, 84%, 53%)
CMYKcmyk(37.8%, 83.7%, 0%, 47.1%)
CIE-LABlab(24.35, 48.05, -50.05)
CIE-LCHlch(24.35, 69.38, 313.84°)
OKLaboklab(36.99% 0.0942 -0.1428)
OKLCHoklch(36.99% 0.171 303.4)
XYZxyz(8.3152, 4.2079, 23.2911)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541687 #498716
analogous
#1B1687 #541687 #871681
triadic
#541687 #875416 #168754
tetradic
#541687 #871B16 #498716 #168187
square
#541687 #871B16 #498716 #168187
split-complementary
#541687 #818716 #16871B
monochromatic
#13051E #330D52 #541687 #751FBC #9439DF

Accessibility & contrast

On white

11.40
#541687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#541687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541687
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541687#FFFFFF#000000##FFFFFF
##5416871.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.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: #541687;
/* rgb */ color: rgb(84, 22, 135);
/* oklch */ color: oklch(37.0% 0.171 303.4);
Tailwind
colors: {
  custom: {
    50: '#8a5cab',
    500: '#541687',
    950: '#000000',
  },
}
SCSS
$custom: #541687;
$custom-light: #8a5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#541687",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 272.92,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36988,
    "c": 0.17109,
    "h": 303.4
  },
  "luminance": 0.04208
}

Semantic roles & 50–950 ramp

primary
#541687
secondary
#76BB3E
accent
#EF398B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #541687

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

Preview Lab → · Contrast checker → · Palette generator →

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