#542096#542096

#542096 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.177 H 297.4°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#542096
RGBrgb(84, 32, 150)
HSLhsl(266, 65%, 36%)
HSVhsv(266, 79%, 59%)
CMYKcmyk(44%, 78.7%, 0%, 41.2%)
CIE-LABlab(27.07, 47.81, -54.90)
CIE-LCHlch(27.07, 72.80, 311.05°)
OKLaboklab(39.3% 0.0816 -0.1572)
OKLCHoklch(39.3% 0.177 297.4)
XYZxyz(9.6762, 5.1197, 29.3266)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542096 #629620
analogous
#202796 #542096 #8F2096
triadic
#542096 #965420 #209654
tetradic
#542096 #962027 #629620 #20968F
square
#542096 #962027 #629620 #20968F
split-complementary
#542096 #968F20 #279620
monochromatic
#1C0A31 #381564 #542096 #702BC8 #9056DB

Accessibility & contrast

On white

10.38
#542096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#542096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542096
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542096#FFFFFF#000000##FFFFFF
##5420961.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#43405A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #542096;
/* rgb */ color: rgb(84, 32, 150);
/* oklch */ color: oklch(39.3% 0.177 297.4);
Tailwind
colors: {
  custom: {
    50: '#8b62b6',
    500: '#542096',
    950: '#000000',
  },
}
SCSS
$custom: #542096;
$custom-light: #8b62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#542096",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 266.441,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39303,
    "c": 0.17709,
    "h": 297.4
  },
  "luminance": 0.0512
}

Semantic roles & 50–950 ramp

primary
#542096
secondary
#8FBE53
accent
#E8409E
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #542096

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

Preview Lab → · Contrast checker → · Palette generator →

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