#542889#542889

#542889 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.153 H 300.1°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#542889
RGBrgb(84, 40, 137)
HSLhsl(267, 55%, 35%)
HSVhsv(267, 71%, 54%)
CMYKcmyk(38.7%, 70.8%, 0%, 46.3%)
CIE-LABlab(27.32, 40.57, -46.45)
CIE-LCHlch(27.32, 61.67, 311.13°)
OKLaboklab(39.14% 0.0768 -0.1324)
OKLCHoklch(39.14% 0.153 300.1)
XYZxyz(8.9292, 5.2085, 24.1970)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542889 #5D8928
analogous
#282D89 #542889 #842889
triadic
#542889 #895428 #288954
tetradic
#542889 #89282D #5D8928 #288984
square
#542889 #89282D #5D8928 #288984
split-complementary
#542889 #898428 #2D8928
monochromatic
#1A0C2A #371A5A #542889 #7136B8 #905CCF

Accessibility & contrast

On white

10.29
#542889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542889
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542889#FFFFFF#000000##FFFFFF
##5428891.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#483F55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #542889;
/* rgb */ color: rgb(84, 40, 137);
/* oklch */ color: oklch(39.1% 0.153 300.1);
Tailwind
colors: {
  custom: {
    50: '#8965ac',
    500: '#542889',
    950: '#000000',
  },
}
SCSS
$custom: #542889;
$custom-light: #8965ac;
$custom-dark: #000000;
JSON
{
  "hex": "#542889",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 267.216,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39135,
    "c": 0.15307,
    "h": 300.1
  },
  "luminance": 0.05209
}

Semantic roles & 50–950 ramp

primary
#542889
secondary
#8BB558
accent
#DE4A9B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #542889

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

Preview Lab → · Contrast checker → · Palette generator →

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