#542699#542699

#542699 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.174 H 295.7°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#542699
RGBrgb(84, 38, 153)
HSLhsl(264, 60%, 37%)
HSVhsv(264, 75%, 60%)
CMYKcmyk(45.1%, 75.2%, 0%, 40%)
CIE-LABlab(28.30, 45.85, -54.73)
CIE-LCHlch(28.30, 71.39, 309.96°)
OKLaboklab(40.25% 0.0755 -0.1567)
OKLCHoklch(40.25% 0.174 295.7)
XYZxyz(10.0975, 5.5707, 30.6741)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542699 #6B9926
analogous
#263299 #542699 #8D2699
triadic
#542699 #995426 #269954
tetradic
#542699 #992632 #6B9926 #26998D
square
#542699 #992632 #6B9926 #26998D
split-complementary
#542699 #998D26 #329926
monochromatic
#1E0E37 #391A68 #542699 #6F32CA #9162D8

Accessibility & contrast

On white

9.93
#542699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#542699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542699
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542699#FFFFFF#000000##FFFFFF
##5426991.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#41445D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #542699;
/* rgb */ color: rgb(84, 38, 153);
/* oklch */ color: oklch(40.2% 0.174 295.7);
Tailwind
colors: {
  custom: {
    50: '#8b65b8',
    500: '#542699',
    950: '#000000',
  },
}
SCSS
$custom: #542699;
$custom-light: #8b65b8;
$custom-dark: #000000;
JSON
{
  "hex": "#542699",
  "rgb": {
    "r": 84,
    "g": 38,
    "b": 153
  },
  "hsl": {
    "h": 264,
    "s": 60.209,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40248,
    "c": 0.17396,
    "h": 295.7
  },
  "luminance": 0.05571
}

Semantic roles & 50–950 ramp

primary
#542699
secondary
#97BD5E
accent
#E344A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #542699

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

Preview Lab → · Contrast checker → · Palette generator →

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