#541189#541189

#541189 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.177 H 303.2°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#541189
RGBrgb(84, 17, 137)
HSLhsl(274, 78%, 30%)
HSVhsv(274, 88%, 54%)
CMYKcmyk(38.7%, 87.6%, 0%, 46.3%)
CIE-LABlab(23.97, 50.16, -51.91)
CIE-LCHlch(23.97, 72.19, 314.02°)
OKLaboklab(36.79% 0.0969 -0.1483)
OKLCHoklch(36.79% 0.177 303.2)
XYZxyz(8.3709, 4.0919, 24.0109)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541189 #468911
analogous
#181189 #541189 #891182
triadic
#541189 #895411 #118954
tetradic
#541189 #891811 #468911 #118289
square
#541189 #891811 #468911 #118289
split-complementary
#541189 #828911 #118918
monochromatic
#11031C #330A53 #541189 #7518BF #952FE5

Accessibility & contrast

On white

11.55
#541189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#541189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541189
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541189#FFFFFF#000000##FFFFFF
##5411891.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#493550
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541189;
/* rgb */ color: rgb(84, 17, 137);
/* oklch */ color: oklch(36.8% 0.177 303.2);
Tailwind
colors: {
  custom: {
    50: '#8a5bac',
    500: '#541189',
    950: '#000000',
  },
}
SCSS
$custom: #541189;
$custom-light: #8a5bac;
$custom-dark: #000000;
JSON
{
  "hex": "#541189",
  "rgb": {
    "r": 84,
    "g": 17,
    "b": 137
  },
  "hsl": {
    "h": 273.5,
    "s": 77.922,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36785,
    "c": 0.17714,
    "h": 303.2
  },
  "luminance": 0.04092
}

Semantic roles & 50–950 ramp

primary
#541189
secondary
#73BE38
accent
#F43389
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0D0410
muted
#7D797F

Preview Lab

Preview with #541189

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

Preview Lab → · Contrast checker → · Palette generator →

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