#542090#542090

#542090 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.171 H 299.2°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#542090
RGBrgb(84, 32, 144)
HSLhsl(268, 64%, 35%)
HSVhsv(268, 78%, 56%)
CMYKcmyk(41.7%, 77.8%, 0%, 43.5%)
CIE-LABlab(26.54, 46.26, -52.07)
CIE-LCHlch(26.54, 69.65, 311.62°)
OKLaboklab(38.76% 0.0833 -0.1489)
OKLCHoklch(38.76% 0.171 299.2)
XYZxyz(9.2054, 4.9313, 26.8470)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542090 #5C9020
analogous
#202490 #542090 #8C2090
triadic
#542090 #905420 #209054
tetradic
#542090 #902024 #5C9020 #20908C
square
#542090 #902024 #5C9020 #20908C
split-complementary
#542090 #908C20 #249020
monochromatic
#1A0A2C #37155E #542090 #712BC2 #9052D9

Accessibility & contrast

On white

10.57
#542090 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#542090 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542090
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542090#FFFFFF#000000##FFFFFF
##5420901.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F93
Deuteranopia (green-blind)
#003E8E
Tritanopia (blue-blind)
#453E57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #542090;
/* rgb */ color: rgb(84, 32, 144);
/* oklch */ color: oklch(38.8% 0.171 299.2);
Tailwind
colors: {
  custom: {
    50: '#8a61b1',
    500: '#542090',
    950: '#000000',
  },
}
SCSS
$custom: #542090;
$custom-light: #8a61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#542090",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 144
  },
  "hsl": {
    "h": 267.857,
    "s": 63.636,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38764,
    "c": 0.17057,
    "h": 299.2
  },
  "luminance": 0.04931
}

Semantic roles & 50–950 ramp

primary
#542090
secondary
#8ABC50
accent
#E7419A
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #542090

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

Preview Lab → · Contrast checker → · Palette generator →

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