#542888#542888

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

Color values

HEX#542888
RGBrgb(84, 40, 136)
HSLhsl(268, 55%, 35%)
HSVhsv(268, 71%, 53%)
CMYKcmyk(38.2%, 70.6%, 0%, 46.7%)
CIE-LABlab(27.24, 40.31, -45.96)
CIE-LCHlch(27.24, 61.13, 311.25°)
OKLaboklab(39.05% 0.077 -0.131)
OKLCHoklch(39.05% 0.152 300.4)
XYZxyz(8.8578, 5.1799, 23.8209)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542888 #5C8828
analogous
#282C88 #542888 #842888
triadic
#542888 #885428 #288854
tetradic
#542888 #88282C #5C8828 #288884
square
#542888 #88282C #5C8828 #288884
split-complementary
#542888 #888428 #2C8828
monochromatic
#1A0C29 #371A59 #542888 #7136B7 #905BCF

Accessibility & contrast

On white

10.31
#542888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542888
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542888#FFFFFF#000000##FFFFFF
##5428881.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#483F55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #542888;
/* rgb */ color: rgb(84, 40, 136);
/* oklch */ color: oklch(39.1% 0.152 300.4);
Tailwind
colors: {
  custom: {
    50: '#8965ab',
    500: '#542888',
    950: '#000000',
  },
}
SCSS
$custom: #542888;
$custom-light: #8965ab;
$custom-dark: #000000;
JSON
{
  "hex": "#542888",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 267.5,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39053,
    "c": 0.15189,
    "h": 300.4
  },
  "luminance": 0.0518
}

Semantic roles & 50–950 ramp

primary
#542888
secondary
#8AB458
accent
#DE4A9A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #542888

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

Preview Lab → · Contrast checker → · Palette generator →

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