#542191#542191

#542191 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.171 H 298.8°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#542191
RGBrgb(84, 33, 145)
HSLhsl(267, 63%, 35%)
HSVhsv(267, 77%, 57%)
CMYKcmyk(42.1%, 77.2%, 0%, 43.1%)
CIE-LABlab(26.78, 46.07, -52.29)
CIE-LCHlch(26.78, 69.69, 311.38°)
OKLaboklab(38.96% 0.0821 -0.1495)
OKLCHoklch(38.96% 0.171 298.8)
XYZxyz(9.3095, 5.0167, 27.2604)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542191 #5E9121
analogous
#212691 #542191 #8C2191
triadic
#542191 #915421 #219154
tetradic
#542191 #912126 #5E9121 #21918C
square
#542191 #912126 #5E9121 #21918C
split-complementary
#542191 #918C21 #269121
monochromatic
#1A0A2D #37165F #542191 #712CC3 #9054D8

Accessibility & contrast

On white

10.48
#542191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#542191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542191
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542191#FFFFFF#000000##FFFFFF
##5421911.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#003E8F
Tritanopia (blue-blind)
#453F58
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #542191;
/* rgb */ color: rgb(84, 33, 145);
/* oklch */ color: oklch(39.0% 0.171 298.8);
Tailwind
colors: {
  custom: {
    50: '#8a62b2',
    500: '#542191',
    950: '#000000',
  },
}
SCSS
$custom: #542191;
$custom-light: #8a62b2;
$custom-dark: #000000;
JSON
{
  "hex": "#542191",
  "rgb": {
    "r": 84,
    "g": 33,
    "b": 145
  },
  "hsl": {
    "h": 267.321,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38962,
    "c": 0.17059,
    "h": 298.8
  },
  "luminance": 0.05017
}

Semantic roles & 50–950 ramp

primary
#542191
secondary
#8CBC52
accent
#E6429B
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #542191

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

Preview Lab → · Contrast checker → · Palette generator →

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