#542398#542398

#542398 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.176 H 296.5°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#542398
RGBrgb(84, 35, 152)
HSLhsl(265, 63%, 37%)
HSVhsv(265, 77%, 60%)
CMYKcmyk(44.7%, 77%, 0%, 40.4%)
CIE-LABlab(27.72, 46.99, -55.07)
CIE-LCHlch(27.72, 72.39, 310.48°)
OKLaboklab(39.81% 0.0785 -0.1577)
OKLCHoklch(39.81% 0.176 296.5)
XYZxyz(9.9232, 5.3537, 30.2102)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542398 #679823
analogous
#232D98 #542398 #8F2398
triadic
#542398 #985423 #239854
tetradic
#542398 #98232D #679823 #23988F
square
#542398 #98232D #679823 #23988F
split-complementary
#542398 #988F23 #2D9823
monochromatic
#1D0C35 #391866 #542398 #6F2ECA #915CD9

Accessibility & contrast

On white

10.14
#542398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#542398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542398
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542398#FFFFFF#000000##FFFFFF
##5423981.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542398;
/* rgb */ color: rgb(84, 35, 152);
/* oklch */ color: oklch(39.8% 0.176 296.5);
Tailwind
colors: {
  custom: {
    50: '#8b63b7',
    500: '#542398',
    950: '#000000',
  },
}
SCSS
$custom: #542398;
$custom-light: #8b63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#542398",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 265.128,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39811,
    "c": 0.17614,
    "h": 296.5
  },
  "luminance": 0.05354
}

Semantic roles & 50–950 ramp

primary
#542398
secondary
#94BE59
accent
#E642A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #542398

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

Preview Lab → · Contrast checker → · Palette generator →

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