#542986#542986

#542986 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.148 H 300.9°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#542986
RGBrgb(84, 41, 134)
HSLhsl(268, 53%, 34%)
HSVhsv(268, 69%, 53%)
CMYKcmyk(37.3%, 69.4%, 0%, 47.5%)
CIE-LABlab(27.27, 39.25, -44.66)
CIE-LCHlch(27.27, 59.45, 311.31°)
OKLaboklab(39.03% 0.0761 -0.1271)
OKLCHoklch(39.03% 0.148 300.9)
XYZxyz(8.7511, 5.1919, 23.0907)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542986 #5B8629
analogous
#292D86 #542986 #832986
triadic
#542986 #865429 #298654
tetradic
#542986 #86292D #5B8629 #298683
square
#542986 #86292D #5B8629 #298683
split-complementary
#542986 #868329 #2D8629
monochromatic
#190C28 #371B57 #542986 #7137B5 #905CCD

Accessibility & contrast

On white

10.30
#542986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#542986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542986
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542986#FFFFFF#000000##FFFFFF
##5429861.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004089
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#493E54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #542986;
/* rgb */ color: rgb(84, 41, 134);
/* oklch */ color: oklch(39.0% 0.148 300.9);
Tailwind
colors: {
  custom: {
    50: '#8966aa',
    500: '#542986',
    950: '#000000',
  },
}
SCSS
$custom: #542986;
$custom-light: #8966aa;
$custom-dark: #000000;
JSON
{
  "hex": "#542986",
  "rgb": {
    "r": 84,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 267.742,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39028,
    "c": 0.14819,
    "h": 300.9
  },
  "luminance": 0.05192
}

Semantic roles & 50–950 ramp

primary
#542986
secondary
#89B358
accent
#DD4B99
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #542986

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

Preview Lab → · Contrast checker → · Palette generator →

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