#541268#541268

#541268 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.145 H 316.7°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#541268
RGBrgb(84, 18, 104)
HSLhsl(286, 70%, 24%)
HSVhsv(286, 83%, 41%)
CMYKcmyk(19.2%, 82.7%, 0%, 59.2%)
CIE-LABlab(21.27, 42.45, -35.22)
CIE-LCHlch(21.27, 55.16, 320.32°)
OKLaboklab(34.03% 0.1054 -0.0992)
OKLCHoklch(34.03% 0.145 316.7)
XYZxyz(6.3708, 3.3172, 13.3987)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541268 #266812
analogous
#291268 #541268 #681251
triadic
#541268 #685412 #126854
tetradic
#541268 #682912 #266812 #125168
square
#541268 #682912 #266812 #125168
split-complementary
#541268 #516812 #126829
monochromatic
#15051A #2A0934 #541268 #7E1B9C #A824D0

Accessibility & contrast

On white

12.62
#541268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#541268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541268
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541268#FFFFFF#000000##FFFFFF
##5412681.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#123566
Tritanopia (blue-blind)
#53263D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #541268;
/* rgb */ color: rgb(84, 18, 104);
/* oklch */ color: oklch(34.0% 0.145 316.7);
Tailwind
colors: {
  custom: {
    50: '#885994',
    500: '#541268',
    950: '#000000',
  },
}
SCSS
$custom: #541268;
$custom-light: #885994;
$custom-dark: #000000;
JSON
{
  "hex": "#541268",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 286.047,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.34031,
    "c": 0.14476,
    "h": 316.7
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#541268
secondary
#4FA036
accent
#ED3B64
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #541268

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

Preview Lab → · Contrast checker → · Palette generator →

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