#542B97#542B97

#542B97 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.166 H 295.4°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#542B97
RGBrgb(84, 43, 151)
HSLhsl(263, 56%, 38%)
HSVhsv(263, 72%, 59%)
CMYKcmyk(44.4%, 71.5%, 0%, 40.8%)
CIE-LABlab(29.02, 42.80, -52.33)
CIE-LCHlch(29.02, 67.60, 309.28°)
OKLaboklab(40.71% 0.0712 -0.1497)
OKLCHoklch(40.71% 0.166 295.4)
XYZxyz(10.1045, 5.8467, 29.8683)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542B97 #6E972B
analogous
#2B3897 #542B97 #8A2B97
triadic
#542B97 #97542B #2B9754
tetradic
#542B97 #972B38 #6E972B #2B978A
square
#542B97 #972B38 #6E972B #2B978A
split-complementary
#542B97 #978A2B #38972B
monochromatic
#1F1038 #3A1D67 #542B97 #6F39C7 #9168D4

Accessibility & contrast

On white

9.68
#542B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#542B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542B97
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542B97#FFFFFF#000000##FFFFFF
##542B971.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#42465E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #542b97;
/* rgb */ color: rgb(84, 43, 151);
/* oklch */ color: oklch(40.7% 0.166 295.4);
Tailwind
colors: {
  custom: {
    50: '#8a68b6',
    500: '#542b97',
    950: '#000000',
  },
}
SCSS
$custom: #542b97;
$custom-light: #8a68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#542b97",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 262.778,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40705,
    "c": 0.16574,
    "h": 295.4
  },
  "luminance": 0.05847
}

Semantic roles & 50–950 ramp

primary
#542B97
secondary
#99BB63
accent
#DF49A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542B97

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

Preview Lab → · Contrast checker → · Palette generator →

#542B97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva