#541870#541870

#541870 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.146 H 312.3°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#541870
RGBrgb(84, 24, 112)
HSLhsl(281, 65%, 27%)
HSVhsv(281, 79%, 44%)
CMYKcmyk(25%, 78.6%, 0%, 56.1%)
CIE-LABlab(22.68, 41.92, -38.13)
CIE-LCHlch(22.68, 56.67, 317.71°)
OKLaboklab(35.22% 0.0983 -0.1079)
OKLCHoklch(35.22% 0.146 312.3)
XYZxyz(6.9069, 3.7081, 15.6780)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541870 #347018
analogous
#281870 #541870 #701860
triadic
#541870 #705418 #187054
tetradic
#541870 #702818 #347018 #186070
square
#541870 #702818 #347018 #186070
split-complementary
#541870 #607018 #187028
monochromatic
#130519 #2E0D3E #541870 #7A23A2 #9F30D3

Accessibility & contrast

On white

12.06
#541870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#541870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541870
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541870#FFFFFF#000000##FFFFFF
##5418701.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#0B376E
Tritanopia (blue-blind)
#512C43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #541870;
/* rgb */ color: rgb(84, 24, 112);
/* oklch */ color: oklch(35.2% 0.146 312.3);
Tailwind
colors: {
  custom: {
    50: '#885c9a',
    500: '#541870',
    950: '#000000',
  },
}
SCSS
$custom: #541870;
$custom-light: #885c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#541870",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 280.909,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3522,
    "c": 0.1459,
    "h": 312.3
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#541870
secondary
#5FA53E
accent
#E84075
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541870

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

Preview Lab → · Contrast checker → · Palette generator →

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