#541882#541882

#541882 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.164 H 305.0°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#541882
RGBrgb(84, 24, 130)
HSLhsl(274, 69%, 30%)
HSVhsv(274, 82%, 51%)
CMYKcmyk(35.4%, 81.5%, 0%, 49%)
CIE-LABlab(24.16, 46.12, -47.21)
CIE-LCHlch(24.16, 66.00, 314.33°)
OKLaboklab(36.72% 0.0941 -0.1345)
OKLCHoklch(36.72% 0.164 305)
XYZxyz(8.0111, 4.1498, 21.4937)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541882 #468218
analogous
#1F1882 #541882 #82187B
triadic
#541882 #825418 #188254
tetradic
#541882 #821F18 #468218 #187B82
square
#541882 #821F18 #468218 #187B82
split-complementary
#541882 #7B8218 #18821F
monochromatic
#11051B #330E4E #541882 #7522B6 #953ADB

Accessibility & contrast

On white

11.48
#541882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#541882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541882
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541882#FFFFFF#000000##FFFFFF
##5418821.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#4B344D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541882;
/* rgb */ color: rgb(84, 24, 130);
/* oklch */ color: oklch(36.7% 0.164 305.0);
Tailwind
colors: {
  custom: {
    50: '#895da7',
    500: '#541882',
    950: '#000000',
  },
}
SCSS
$custom: #541882;
$custom-light: #895da7;
$custom-dark: #000000;
JSON
{
  "hex": "#541882",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 273.962,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36721,
    "c": 0.16415,
    "h": 305
  },
  "luminance": 0.0415
}

Semantic roles & 50–950 ramp

primary
#541882
secondary
#73B640
accent
#EC3C88
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541882

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

Preview Lab → · Contrast checker → · Palette generator →

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