#541874#541874

#541874 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.150 H 310.6°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#541874
RGBrgb(84, 24, 116)
HSLhsl(279, 66%, 27%)
HSVhsv(279, 79%, 45%)
CMYKcmyk(27.6%, 79.3%, 0%, 54.5%)
CIE-LABlab(23.00, 42.83, -40.20)
CIE-LCHlch(23.00, 58.74, 316.82°)
OKLaboklab(35.54% 0.0975 -0.1139)
OKLCHoklch(35.54% 0.15 310.6)
XYZxyz(7.1346, 3.7992, 16.8771)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541874 #387418
analogous
#261874 #541874 #741866
triadic
#541874 #745418 #187454
tetradic
#541874 #742618 #387418 #186674
square
#541874 #742618 #387418 #186674
split-complementary
#541874 #667418 #187426
monochromatic
#120519 #2F0E41 #541874 #7922A7 #9C32D5

Accessibility & contrast

On white

11.93
#541874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#541874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541874
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541874#FFFFFF#000000##FFFFFF
##5418741.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#023872
Tritanopia (blue-blind)
#502E45
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #541874;
/* rgb */ color: rgb(84, 24, 116);
/* oklch */ color: oklch(35.5% 0.150 310.6);
Tailwind
colors: {
  custom: {
    50: '#885c9d',
    500: '#541874',
    950: '#000000',
  },
}
SCSS
$custom: #541874;
$custom-light: #885c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#541874",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 279.13,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35541,
    "c": 0.14994,
    "h": 310.6
  },
  "luminance": 0.03799
}

Semantic roles & 50–950 ramp

primary
#541874
secondary
#64A93F
accent
#E93F7A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541874

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

Preview Lab → · Contrast checker → · Palette generator →

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