#541FA7#541FA7

#541FA7 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.196 H 293.1°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#541FA7
RGBrgb(84, 31, 167)
HSLhsl(263, 69%, 39%)
HSVhsv(263, 81%, 65%)
CMYKcmyk(49.7%, 81.4%, 0%, 34.5%)
CIE-LABlab(28.52, 52.63, -62.87)
CIE-LCHlch(28.52, 81.99, 309.93°)
OKLaboklab(40.8% 0.077 -0.1805)
OKLCHoklch(40.8% 0.196 293.1)
XYZxyz(11.1192, 5.6544, 37.0573)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541FA7 #72A71F
analogous
#1F2EA7 #541FA7 #981FA7
triadic
#541FA7 #A7541F #1FA754
tetradic
#541FA7 #A71F2E #72A71F #1FA798
square
#541FA7 #A71F2E #72A71F #1FA798
split-complementary
#541FA7 #A7981F #2EA71F
monochromatic
#200C40 #3A1573 #541FA7 #6F2BD8 #925FE1

Accessibility & contrast

On white

9.85
#541FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#541FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541FA7
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541FA7#FFFFFF#000000##FFFFFF
##541FA71.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#394764
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #541fa7;
/* rgb */ color: rgb(84, 31, 167);
/* oklch */ color: oklch(40.8% 0.196 293.1);
Tailwind
colors: {
  custom: {
    50: '#8d62c2',
    500: '#541fa7',
    950: '#000000',
  },
}
SCSS
$custom: #541fa7;
$custom-light: #8d62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#541fa7",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 263.382,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40797,
    "c": 0.19627,
    "h": 293.1
  },
  "luminance": 0.05655
}

Semantic roles & 50–950 ramp

primary
#541FA7
secondary
#9DC65C
accent
#EC3CA7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #541FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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