#542097#542097

#542097 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.178 H 297.2°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#542097
RGBrgb(84, 32, 151)
HSLhsl(266, 65%, 36%)
HSVhsv(266, 79%, 59%)
CMYKcmyk(44.4%, 78.8%, 0%, 40.8%)
CIE-LABlab(27.16, 48.07, -55.36)
CIE-LCHlch(27.16, 73.32, 310.96°)
OKLaboklab(39.39% 0.0813 -0.1585)
OKLCHoklch(39.39% 0.178 297.2)
XYZxyz(9.7571, 5.1520, 29.7525)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542097 #639720
analogous
#202897 #542097 #8F2097
triadic
#542097 #975420 #209754
tetradic
#542097 #972028 #639720 #20978F
square
#542097 #972028 #639720 #20978F
split-complementary
#542097 #978F20 #289720
monochromatic
#1C0B32 #381564 #542097 #702BC9 #9056DB

Accessibility & contrast

On white

10.34
#542097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#542097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542097
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542097#FFFFFF#000000##FFFFFF
##5420971.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#42415B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #542097;
/* rgb */ color: rgb(84, 32, 151);
/* oklch */ color: oklch(39.4% 0.178 297.2);
Tailwind
colors: {
  custom: {
    50: '#8b62b7',
    500: '#542097',
    950: '#000000',
  },
}
SCSS
$custom: #542097;
$custom-light: #8b62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#542097",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 266.218,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39394,
    "c": 0.17817,
    "h": 297.2
  },
  "luminance": 0.05152
}

Semantic roles & 50–950 ramp

primary
#542097
secondary
#90BF54
accent
#E8409F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #542097

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

Preview Lab → · Contrast checker → · Palette generator →

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