#541968#541968

#541968 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.137 H 316.1°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#541968
RGBrgb(84, 25, 104)
HSLhsl(285, 61%, 25%)
HSVhsv(285, 76%, 41%)
CMYKcmyk(19.2%, 76%, 0%, 59.2%)
CIE-LABlab(22.23, 39.70, -33.67)
CIE-LCHlch(22.23, 52.06, 319.70°)
OKLaboklab(34.71% 0.0984 -0.0948)
OKLCHoklch(34.71% 0.137 316.1)
XYZxyz(6.5021, 3.5798, 13.4425)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541968 #2D6819
analogous
#2C1968 #541968 #681954
triadic
#541968 #685419 #196854
tetradic
#541968 #682C19 #2D6819 #195468
square
#541968 #682C19 #2D6819 #195468
split-complementary
#541968 #546819 #19682C
monochromatic
#140619 #2C0D37 #541968 #7C2599 #A431CB

Accessibility & contrast

On white

12.24
#541968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541968
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541968#FFFFFF#000000##FFFFFF
##5419681.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#183766
Tritanopia (blue-blind)
#53293F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #541968;
/* rgb */ color: rgb(84, 25, 104);
/* oklch */ color: oklch(34.7% 0.137 316.1);
Tailwind
colors: {
  custom: {
    50: '#875c94',
    500: '#541968',
    950: '#000000',
  },
}
SCSS
$custom: #541968;
$custom-light: #875c94;
$custom-dark: #000000;
JSON
{
  "hex": "#541968",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 284.81,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3471,
    "c": 0.13659,
    "h": 316.1
  },
  "luminance": 0.0358
}

Semantic roles & 50–950 ramp

primary
#541968
secondary
#579E3F
accent
#E4436C
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #541968

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

Preview Lab → · Contrast checker → · Palette generator →

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