#542599#542599

#542599 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.175 H 295.9°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#542599
RGBrgb(84, 37, 153)
HSLhsl(264, 61%, 37%)
HSVhsv(264, 76%, 60%)
CMYKcmyk(45.1%, 75.8%, 0%, 40%)
CIE-LABlab(28.13, 46.33, -55.00)
CIE-LCHlch(28.13, 71.91, 310.11°)
OKLaboklab(40.13% 0.0764 -0.1575)
OKLCHoklch(40.13% 0.175 295.9)
XYZxyz(10.0660, 5.5076, 30.6635)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542599 #6A9925
analogous
#253099 #542599 #8E2599
triadic
#542599 #995425 #259954
tetradic
#542599 #992530 #6A9925 #25998E
square
#542599 #992530 #6A9925 #25998E
split-complementary
#542599 #998E25 #309925
monochromatic
#1E0D36 #391968 #542599 #6F31CA #9160D9

Accessibility & contrast

On white

9.99
#542599 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#542599 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542599
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542599#FFFFFF#000000##FFFFFF
##5425991.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542599;
/* rgb */ color: rgb(84, 37, 153);
/* oklch */ color: oklch(40.1% 0.175 295.9);
Tailwind
colors: {
  custom: {
    50: '#8b65b8',
    500: '#542599',
    950: '#000000',
  },
}
SCSS
$custom: #542599;
$custom-light: #8b65b8;
$custom-dark: #000000;
JSON
{
  "hex": "#542599",
  "rgb": {
    "r": 84,
    "g": 37,
    "b": 153
  },
  "hsl": {
    "h": 264.31,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4013,
    "c": 0.17508,
    "h": 295.9
  },
  "luminance": 0.05508
}

Semantic roles & 50–950 ramp

primary
#542599
secondary
#96BE5C
accent
#E444A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #542599

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

Preview Lab → · Contrast checker → · Palette generator →

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