#542998#542998

#542998 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.169 H 295.5°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#542998
RGBrgb(84, 41, 152)
HSLhsl(263, 58%, 38%)
HSVhsv(263, 73%, 60%)
CMYKcmyk(44.7%, 73%, 0%, 40.4%)
CIE-LABlab(28.74, 44.10, -53.40)
CIE-LCHlch(28.74, 69.26, 309.55°)
OKLaboklab(40.53% 0.0729 -0.1528)
OKLCHoklch(40.53% 0.169 295.5)
XYZxyz(10.1151, 5.7374, 30.2742)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542998 #6D9829
analogous
#293698 #542998 #8B2998
triadic
#542998 #985429 #299854
tetradic
#542998 #982936 #6D9829 #29988B
square
#542998 #982936 #6D9829 #29988B
split-complementary
#542998 #988B29 #369829
monochromatic
#1F0F38 #391C68 #542998 #6F36C8 #9166D6

Accessibility & contrast

On white

9.78
#542998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#542998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542998
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542998#FFFFFF#000000##FFFFFF
##5429981.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#41455E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #542998;
/* rgb */ color: rgb(84, 41, 152);
/* oklch */ color: oklch(40.5% 0.169 295.5);
Tailwind
colors: {
  custom: {
    50: '#8b67b7',
    500: '#542998',
    950: '#000000',
  },
}
SCSS
$custom: #542998;
$custom-light: #8b67b7;
$custom-dark: #000000;
JSON
{
  "hex": "#542998",
  "rgb": {
    "r": 84,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 263.243,
    "s": 57.513,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40531,
    "c": 0.16934,
    "h": 295.5
  },
  "luminance": 0.05738
}

Semantic roles & 50–950 ramp

primary
#542998
secondary
#99BC61
accent
#E147A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #542998

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

Preview Lab → · Contrast checker → · Palette generator →

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