#542086#542086

#542086 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.160 H 302.5°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#542086
RGBrgb(84, 32, 134)
HSLhsl(271, 61%, 33%)
HSVhsv(271, 76%, 53%)
CMYKcmyk(37.3%, 76.1%, 0%, 47.5%)
CIE-LABlab(25.68, 43.72, -47.25)
CIE-LCHlch(25.68, 64.37, 312.78°)
OKLaboklab(37.89% 0.0857 -0.1347)
OKLCHoklch(37.89% 0.16 302.5)
XYZxyz(8.4747, 4.6391, 22.9986)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542086 #528620
analogous
#212086 #542086 #862085
triadic
#542086 #865420 #208654
tetradic
#542086 #862120 #528620 #208586
square
#542086 #862120 #528620 #208586
split-complementary
#542086 #858620 #208621
monochromatic
#160823 #351455 #542086 #732CB7 #924CD4

Accessibility & contrast

On white

10.89
#542086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#542086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542086
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542086#FFFFFF#000000##FFFFFF
##5420861.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#4A3A51
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #542086;
/* rgb */ color: rgb(84, 32, 134);
/* oklch */ color: oklch(37.9% 0.160 302.5);
Tailwind
colors: {
  custom: {
    50: '#8961aa',
    500: '#542086',
    950: '#000000',
  },
}
SCSS
$custom: #542086;
$custom-light: #8961aa;
$custom-dark: #000000;
JSON
{
  "hex": "#542086",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 270.588,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37894,
    "c": 0.15967,
    "h": 302.5
  },
  "luminance": 0.04639
}

Semantic roles & 50–950 ramp

primary
#542086
secondary
#80B74B
accent
#E54392
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #542086

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

Preview Lab → · Contrast checker → · Palette generator →

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