#541988#541988

#541988 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.169 H 302.7°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#541988
RGBrgb(84, 25, 136)
HSLhsl(272, 69%, 32%)
HSVhsv(272, 82%, 53%)
CMYKcmyk(38.2%, 81.6%, 0%, 46.7%)
CIE-LABlab(24.82, 47.18, -49.90)
CIE-LCHlch(24.82, 68.67, 313.39°)
OKLaboklab(37.34% 0.0915 -0.1424)
OKLCHoklch(37.34% 0.169 302.7)
XYZxyz(8.4467, 4.3576, 23.6839)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541988 #4D8819
analogous
#1D1988 #541988 #881985
triadic
#541988 #885419 #198854
tetradic
#541988 #881D19 #4D8819 #198588
square
#541988 #881D19 #4D8819 #198588
split-complementary
#541988 #858819 #19881D
monochromatic
#140621 #340F54 #541988 #7423BC #9340DC

Accessibility & contrast

On white

11.22
#541988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#541988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541988
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541988#FFFFFF#000000##FFFFFF
##5419881.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#493751
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #541988;
/* rgb */ color: rgb(84, 25, 136);
/* oklch */ color: oklch(37.3% 0.169 302.7);
Tailwind
colors: {
  custom: {
    50: '#8a5eac',
    500: '#541988',
    950: '#000000',
  },
}
SCSS
$custom: #541988;
$custom-light: #8a5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#541988",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 271.892,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37344,
    "c": 0.1693,
    "h": 302.7
  },
  "luminance": 0.04358
}

Semantic roles & 50–950 ramp

primary
#541988
secondary
#7BBB41
accent
#EC3C8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541988

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

Preview Lab → · Contrast checker → · Palette generator →

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