#542298#542298

#542298 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.177 H 296.6°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#542298
RGBrgb(84, 34, 152)
HSLhsl(265, 63%, 36%)
HSVhsv(265, 78%, 60%)
CMYKcmyk(44.7%, 77.6%, 0%, 40.4%)
CIE-LABlab(27.56, 47.44, -55.33)
CIE-LCHlch(27.56, 72.88, 310.61°)
OKLaboklab(39.7% 0.0793 -0.1584)
OKLCHoklch(39.7% 0.177 296.6)
XYZxyz(9.8942, 5.2957, 30.2005)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542298 #669822
analogous
#222B98 #542298 #8F2298
triadic
#542298 #985422 #229854
tetradic
#542298 #98222B #669822 #22988F
square
#542298 #98222B #669822 #22988F
split-complementary
#542298 #988F22 #2B9822
monochromatic
#1D0C34 #381766 #542298 #702DCA #905ADA

Accessibility & contrast

On white

10.20
#542298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542298
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542298#FFFFFF#000000##FFFFFF
##5422981.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#42425C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #542298;
/* rgb */ color: rgb(84, 34, 152);
/* oklch */ color: oklch(39.7% 0.177 296.6);
Tailwind
colors: {
  custom: {
    50: '#8b63b7',
    500: '#542298',
    950: '#000000',
  },
}
SCSS
$custom: #542298;
$custom-light: #8b63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#542298",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 265.424,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.397,
    "c": 0.1772,
    "h": 296.6
  },
  "luminance": 0.05296
}

Semantic roles & 50–950 ramp

primary
#542298
secondary
#93BE57
accent
#E641A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #542298

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

Preview Lab → · Contrast checker → · Palette generator →

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