#541FA0#541FA0

#541FA0 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.189 H 294.8°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#541FA0
RGBrgb(84, 31, 160)
HSLhsl(265, 68%, 37%)
HSVhsv(265, 81%, 63%)
CMYKcmyk(47.5%, 80.6%, 0%, 37.3%)
CIE-LABlab(27.85, 50.82, -59.73)
CIE-LCHlch(27.85, 78.42, 310.39°)
OKLaboklab(40.13% 0.0793 -0.1713)
OKLCHoklch(40.13% 0.189 294.8)
XYZxyz(10.4896, 5.4026, 33.7410)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541FA0 #6BA01F
analogous
#1F2BA0 #541FA0 #941FA0
triadic
#541FA0 #A0541F #1FA054
tetradic
#541FA0 #A01F2B #6BA01F #1FA094
square
#541FA0 #A01F2B #6BA01F #1FA094
split-complementary
#541FA0 #A0941F #2BA01F
monochromatic
#1E0B39 #39156D #541FA0 #6F29D3 #915ADF

Accessibility & contrast

On white

10.09
#541FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#541FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541FA0
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541FA0#FFFFFF#000000##FFFFFF
##541FA01.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#00409E
Tritanopia (blue-blind)
#3D4460
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #541fa0;
/* rgb */ color: rgb(84, 31, 160);
/* oklch */ color: oklch(40.1% 0.189 294.8);
Tailwind
colors: {
  custom: {
    50: '#8c62bd',
    500: '#541fa0',
    950: '#000000',
  },
}
SCSS
$custom: #541fa0;
$custom-light: #8c62bd;
$custom-dark: #000000;
JSON
{
  "hex": "#541fa0",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 264.651,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40128,
    "c": 0.18881,
    "h": 294.8
  },
  "luminance": 0.05403
}

Semantic roles & 50–950 ramp

primary
#541FA0
secondary
#97C358
accent
#EA3DA3
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #541FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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