#542793#542793

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

Color values

HEX#542793
RGBrgb(84, 39, 147)
HSLhsl(265, 58%, 36%)
HSVhsv(265, 73%, 58%)
CMYKcmyk(42.9%, 73.5%, 0%, 42.4%)
CIE-LABlab(27.96, 43.75, -51.60)
CIE-LCHlch(27.96, 67.65, 310.29°)
OKLaboklab(39.85% 0.076 -0.1475)
OKLCHoklch(39.85% 0.166 297.2)
XYZxyz(9.6468, 5.4423, 28.1403)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542793 #669327
analogous
#273093 #542793 #8A2793
triadic
#542793 #935427 #279354
tetradic
#542793 #932730 #669327 #27938A
square
#542793 #932730 #669327 #27938A
split-complementary
#542793 #938A27 #309327
monochromatic
#1D0D32 #381A63 #542793 #7034C3 #9060D5

Accessibility & contrast

On white

10.06
#542793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#542793 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542793
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542793#FFFFFF#000000##FFFFFF
##5427931.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004296
Deuteranopia (green-blind)
#004191
Tritanopia (blue-blind)
#44425A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #542793;
/* rgb */ color: rgb(84, 39, 147);
/* oklch */ color: oklch(39.8% 0.166 297.2);
Tailwind
colors: {
  custom: {
    50: '#8a65b4',
    500: '#542793',
    950: '#000000',
  },
}
SCSS
$custom: #542793;
$custom-light: #8a65b4;
$custom-dark: #000000;
JSON
{
  "hex": "#542793",
  "rgb": {
    "r": 84,
    "g": 39,
    "b": 147
  },
  "hsl": {
    "h": 265,
    "s": 58.065,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39846,
    "c": 0.16595,
    "h": 297.2
  },
  "luminance": 0.05442
}

Semantic roles & 50–950 ramp

primary
#542793
secondary
#93BA5C
accent
#E147A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542793

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

Preview Lab → · Contrast checker → · Palette generator →

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