#541F70#541F70

#541F70 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.137 H 311.4°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#541F70
RGBrgb(84, 31, 112)
HSLhsl(279, 57%, 28%)
HSVhsv(279, 72%, 44%)
CMYKcmyk(25%, 72.3%, 0%, 56.1%)
CIE-LABlab(23.79, 38.79, -36.35)
CIE-LCHlch(23.79, 53.16, 316.86°)
OKLaboklab(36% 0.0906 -0.1027)
OKLCHoklch(36% 0.137 311.4)
XYZxyz(7.0702, 4.0348, 15.7324)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F70 #3B701F
analogous
#2B1F70 #541F70 #701F63
triadic
#541F70 #70541F #1F7054
tetradic
#541F70 #702B1F #3B701F #1F6370
square
#541F70 #702B1F #3B701F #1F6370
split-complementary
#541F70 #63701F #1F702B
monochromatic
#120718 #301240 #541F70 #782CA0 #9A3FCA

Accessibility & contrast

On white

11.62
#541F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#541F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F70
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F70#FFFFFF#000000##FFFFFF
##541F701.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#153A6E
Tritanopia (blue-blind)
#513045
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541f70;
/* rgb */ color: rgb(84, 31, 112);
/* oklch */ color: oklch(36.0% 0.137 311.4);
Tailwind
colors: {
  custom: {
    50: '#875f9a',
    500: '#541f70',
    950: '#000000',
  },
}
SCSS
$custom: #541f70;
$custom-light: #875f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#541f70",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 112
  },
  "hsl": {
    "h": 279.259,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36005,
    "c": 0.13694,
    "h": 311.4
  },
  "luminance": 0.04035
}

Semantic roles & 50–950 ramp

primary
#541F70
secondary
#67A447
accent
#E0487C
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #541F70

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

Preview Lab → · Contrast checker → · Palette generator →

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