#542691#542691

#542691 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.165 H 298.0°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#542691
RGBrgb(84, 38, 145)
HSLhsl(266, 58%, 36%)
HSVhsv(266, 74%, 57%)
CMYKcmyk(42.1%, 73.8%, 0%, 43.1%)
CIE-LABlab(27.61, 43.71, -50.93)
CIE-LCHlch(27.61, 67.12, 310.64°)
OKLaboklab(39.55% 0.0774 -0.1456)
OKLCHoklch(39.55% 0.165 298)
XYZxyz(9.4588, 5.3152, 27.3102)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542691 #639126
analogous
#262E91 #542691 #892691
triadic
#542691 #915426 #269154
tetradic
#542691 #91262E #639126 #269189
square
#542691 #91262E #639126 #269189
split-complementary
#542691 #918926 #2E9126
monochromatic
#1C0D30 #381961 #542691 #7033C1 #905DD5

Accessibility & contrast

On white

10.18
#542691 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#542691 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542691
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542691#FFFFFF#000000##FFFFFF
##5426911.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#00408F
Tritanopia (blue-blind)
#454159
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #542691;
/* rgb */ color: rgb(84, 38, 145);
/* oklch */ color: oklch(39.5% 0.165 298.0);
Tailwind
colors: {
  custom: {
    50: '#8a65b2',
    500: '#542691',
    950: '#000000',
  },
}
SCSS
$custom: #542691;
$custom-light: #8a65b2;
$custom-dark: #000000;
JSON
{
  "hex": "#542691",
  "rgb": {
    "r": 84,
    "g": 38,
    "b": 145
  },
  "hsl": {
    "h": 265.794,
    "s": 58.47,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39549,
    "c": 0.16485,
    "h": 298
  },
  "luminance": 0.05315
}

Semantic roles & 50–950 ramp

primary
#542691
secondary
#90BA59
accent
#E2469F
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542691

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

Preview Lab → · Contrast checker → · Palette generator →

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