#541174#541174

#541174 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.9% C 0.157 H 311.2°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#541174
RGBrgb(84, 17, 116)
HSLhsl(281, 74%, 26%)
HSVhsv(281, 85%, 45%)
CMYKcmyk(27.6%, 85.3%, 0%, 54.5%)
CIE-LABlab(22.11, 45.39, -41.63)
CIE-LCHlch(22.11, 61.59, 317.47°)
OKLaboklab(34.92% 0.1036 -0.1181)
OKLCHoklch(34.92% 0.157 311.2)
XYZxyz(7.0084, 3.5469, 16.8350)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541174 #317411
analogous
#221174 #541174 #741162
triadic
#541174 #745411 #117454
tetradic
#541174 #742211 #317411 #116274
square
#541174 #742211 #317411 #116274
split-complementary
#541174 #627411 #117422
monochromatic
#13041B #2D093F #541174 #7B19A9 #A121DE

Accessibility & contrast

On white

12.29
#541174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#541174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541174
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541174#FFFFFF#000000##FFFFFF
##5411741.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#502B44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #541174;
/* rgb */ color: rgb(84, 17, 116);
/* oklch */ color: oklch(34.9% 0.157 311.2);
Tailwind
colors: {
  custom: {
    50: '#88599d',
    500: '#541174',
    950: '#000000',
  },
}
SCSS
$custom: #541174;
$custom-light: #88599d;
$custom-dark: #000000;
JSON
{
  "hex": "#541174",
  "rgb": {
    "r": 84,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 280.606,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34922,
    "c": 0.15707,
    "h": 311.2
  },
  "luminance": 0.03547
}

Semantic roles & 50–950 ramp

primary
#541174
secondary
#5CAB36
accent
#F13773
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541174

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

Preview Lab → · Contrast checker → · Palette generator →

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