#541670#541670

#541670 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.148 H 312.5°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#541670
RGBrgb(84, 22, 112)
HSLhsl(281, 67%, 26%)
HSVhsv(281, 80%, 44%)
CMYKcmyk(25%, 80.4%, 0%, 56.1%)
CIE-LABlab(22.40, 42.72, -38.58)
CIE-LCHlch(22.40, 57.56, 317.91°)
OKLaboklab(35.02% 0.1002 -0.1092)
OKLCHoklch(35.02% 0.148 312.5)
XYZxyz(6.8672, 3.6287, 15.6648)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541670 #327016
analogous
#271670 #541670 #70165F
triadic
#541670 #705416 #167054
tetradic
#541670 #702716 #327016 #165F70
square
#541670 #702716 #327016 #165F70
split-complementary
#541670 #5F7016 #167027
monochromatic
#13051A #2E0C3D #541670 #7A20A3 #A02BD5

Accessibility & contrast

On white

12.17
#541670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#541670 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541670
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541670#FFFFFF#000000##FFFFFF
##5416701.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#08376E
Tritanopia (blue-blind)
#512B42
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #541670;
/* rgb */ color: rgb(84, 22, 112);
/* oklch */ color: oklch(35.0% 0.148 312.5);
Tailwind
colors: {
  custom: {
    50: '#885b9a',
    500: '#541670',
    950: '#000000',
  },
}
SCSS
$custom: #541670;
$custom-light: #885b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#541670",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 281.333,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35024,
    "c": 0.14818,
    "h": 312.5
  },
  "luminance": 0.03628
}

Semantic roles & 50–950 ramp

primary
#541670
secondary
#5DA63C
accent
#EA3E73
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541670

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

Preview Lab → · Contrast checker → · Palette generator →

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