#541B8F#541B8F

#541B8F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.175 H 300.2°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#541B8F
RGBrgb(84, 27, 143)
HSLhsl(269, 68%, 33%)
HSVhsv(269, 81%, 56%)
CMYKcmyk(41.3%, 81.1%, 0%, 43.9%)
CIE-LABlab(25.72, 48.11, -52.79)
CIE-LCHlch(25.72, 71.43, 312.35°)
OKLaboklab(38.16% 0.0878 -0.1509)
OKLCHoklch(38.16% 0.175 300.2)
XYZxyz(9.0048, 4.6518, 26.4047)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B8F #568F1B
analogous
#1B1C8F #541B8F #8E1B8F
triadic
#541B8F #8F541B #1B8F54
tetradic
#541B8F #8F1B1C #568F1B #1B8F8E
square
#541B8F #8F1B1C #568F1B #1B8F8E
split-complementary
#541B8F #8F8E1B #1C8F1B
monochromatic
#180828 #36115C #541B8F #7225C2 #9148DC

Accessibility & contrast

On white

10.88
#541B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#541B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B8F
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B8F#FFFFFF#000000##FFFFFF
##541B8F1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#463B55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #541b8f;
/* rgb */ color: rgb(84, 27, 143);
/* oklch */ color: oklch(38.2% 0.175 300.2);
Tailwind
colors: {
  custom: {
    50: '#8a5fb1',
    500: '#541b8f',
    950: '#000000',
  },
}
SCSS
$custom: #541b8f;
$custom-light: #8a5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#541b8f",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 269.483,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38163,
    "c": 0.17461,
    "h": 300.2
  },
  "luminance": 0.04652
}

Semantic roles & 50–950 ramp

primary
#541B8F
secondary
#84BE48
accent
#EB3D95
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #541B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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