#542399#542399

#542399 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.177 H 296.2°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#542399
RGBrgb(84, 35, 153)
HSLhsl(265, 63%, 37%)
HSVhsv(265, 77%, 60%)
CMYKcmyk(45.1%, 77.1%, 0%, 40%)
CIE-LABlab(27.81, 47.25, -55.53)
CIE-LCHlch(27.81, 72.92, 310.39°)
OKLaboklab(39.9% 0.0782 -0.1591)
OKLCHoklch(39.9% 0.177 296.2)
XYZxyz(10.0054, 5.3866, 30.6434)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542399 #689923
analogous
#232D99 #542399 #8F2399
triadic
#542399 #995423 #239954
tetradic
#542399 #99232D #689923 #23998F
square
#542399 #99232D #689923 #23998F
split-complementary
#542399 #998F23 #2D9923
monochromatic
#1D0C35 #391867 #542399 #6F2ECB #915DDA

Accessibility & contrast

On white

10.11
#542399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#542399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542399
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542399#FFFFFF#000000##FFFFFF
##5423991.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#004097
Tritanopia (blue-blind)
#41435D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #542399;
/* rgb */ color: rgb(84, 35, 153);
/* oklch */ color: oklch(39.9% 0.177 296.2);
Tailwind
colors: {
  custom: {
    50: '#8b63b8',
    500: '#542399',
    950: '#000000',
  },
}
SCSS
$custom: #542399;
$custom-light: #8b63b8;
$custom-dark: #000000;
JSON
{
  "hex": "#542399",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 264.915,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39901,
    "c": 0.17724,
    "h": 296.2
  },
  "luminance": 0.05387
}

Semantic roles & 50–950 ramp

primary
#542399
secondary
#94BE59
accent
#E642A2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #542399

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

Preview Lab → · Contrast checker → · Palette generator →

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