#541275#541275

#541275 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.1% C 0.157 H 310.7°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#541275
RGBrgb(84, 18, 117)
HSLhsl(280, 73%, 26%)
HSVhsv(280, 85%, 46%)
CMYKcmyk(28.2%, 84.6%, 0%, 54.1%)
CIE-LABlab(22.31, 45.28, -41.96)
CIE-LCHlch(22.31, 61.73, 317.18°)
OKLaboklab(35.09% 0.1025 -0.119)
OKLCHoklch(35.09% 0.157 310.7)
XYZxyz(7.0827, 3.6020, 17.1483)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541275 #337512
analogous
#231275 #541275 #751265
triadic
#541275 #755412 #127554
tetradic
#541275 #752312 #337512 #126575
square
#541275 #752312 #337512 #126575
split-complementary
#541275 #657512 #127523
monochromatic
#13041B #2E0A40 #541275 #7A1AAA #A024DD

Accessibility & contrast

On white

12.21
#541275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#541275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541275
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541275#FFFFFF#000000##FFFFFF
##5412751.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#003673
Tritanopia (blue-blind)
#4F2C45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #541275;
/* rgb */ color: rgb(84, 18, 117);
/* oklch */ color: oklch(35.1% 0.157 310.7);
Tailwind
colors: {
  custom: {
    50: '#885a9d',
    500: '#541275',
    950: '#000000',
  },
}
SCSS
$custom: #541275;
$custom-light: #885a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#541275",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 280,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.35085,
    "c": 0.1571,
    "h": 310.7
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#541275
secondary
#5EAC37
accent
#F03875
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541275

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

Preview Lab → · Contrast checker → · Palette generator →

#541275 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva