#541982#541982

#541982 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.163 H 304.8°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#541982
RGBrgb(84, 25, 130)
HSLhsl(274, 68%, 30%)
HSVhsv(274, 81%, 51%)
CMYKcmyk(35.4%, 80.8%, 0%, 49%)
CIE-LABlab(24.30, 45.73, -46.99)
CIE-LCHlch(24.30, 65.57, 314.22°)
OKLaboklab(36.82% 0.0932 -0.1339)
OKLCHoklch(36.82% 0.163 304.8)
XYZxyz(8.0321, 4.1918, 21.5007)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541982 #478219
analogous
#1F1982 #541982 #82197B
triadic
#541982 #825419 #198254
tetradic
#541982 #821F19 #478219 #197B82
square
#541982 #821F19 #478219 #197B82
split-complementary
#541982 #7B8219 #19821F
monochromatic
#12051B #330F4F #541982 #7523B5 #943CD9

Accessibility & contrast

On white

11.42
#541982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541982
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541982#FFFFFF#000000##FFFFFF
##5419821.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003A80
Tritanopia (blue-blind)
#4B354D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #541982;
/* rgb */ color: rgb(84, 25, 130);
/* oklch */ color: oklch(36.8% 0.163 304.8);
Tailwind
colors: {
  custom: {
    50: '#895da7',
    500: '#541982',
    950: '#000000',
  },
}
SCSS
$custom: #541982;
$custom-light: #895da7;
$custom-dark: #000000;
JSON
{
  "hex": "#541982",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 273.714,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36816,
    "c": 0.16313,
    "h": 304.8
  },
  "luminance": 0.04192
}

Semantic roles & 50–950 ramp

primary
#541982
secondary
#74B641
accent
#EB3D89
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #541982

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

Preview Lab → · Contrast checker → · Palette generator →

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