#541F9C#541F9C

#541F9C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.185 H 295.9°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#541F9C
RGBrgb(84, 31, 156)
HSLhsl(265, 67%, 37%)
HSVhsv(265, 80%, 61%)
CMYKcmyk(46.2%, 80.1%, 0%, 38.8%)
CIE-LABlab(27.48, 49.78, -57.91)
CIE-LCHlch(27.48, 76.37, 310.68°)
OKLaboklab(39.75% 0.0806 -0.166)
OKLCHoklch(39.75% 0.185 295.9)
XYZxyz(10.1453, 5.2648, 31.9277)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F9C #679C1F
analogous
#1F299C #541F9C #931F9C
triadic
#541F9C #9C541F #1F9C54
tetradic
#541F9C #9C1F29 #679C1F #1F9C93
square
#541F9C #9C1F29 #679C1F #1F9C93
split-complementary
#541F9C #9C931F #299C1F
monochromatic
#1D0B36 #391569 #541F9C #6F29CF #9158DE

Accessibility & contrast

On white

10.23
#541F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#541F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F9C
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F9C#FFFFFF#000000##FFFFFF
##541F9C1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#40425E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #541f9c;
/* rgb */ color: rgb(84, 31, 156);
/* oklch */ color: oklch(39.8% 0.185 295.9);
Tailwind
colors: {
  custom: {
    50: '#8c62ba',
    500: '#541f9c',
    950: '#000000',
  },
}
SCSS
$custom: #541f9c;
$custom-light: #8c62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#541f9c",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 265.44,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39753,
    "c": 0.18454,
    "h": 295.9
  },
  "luminance": 0.05265
}

Semantic roles & 50–950 ramp

primary
#541F9C
secondary
#94C155
accent
#EA3EA1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #541F9C

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

Preview Lab → · Contrast checker → · Palette generator →

#541F9C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva