#542893#542893

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

Color values

HEX#542893
RGBrgb(84, 40, 147)
HSLhsl(265, 57%, 37%)
HSVhsv(265, 73%, 58%)
CMYKcmyk(42.9%, 72.8%, 0%, 42.4%)
CIE-LABlab(28.14, 43.25, -51.31)
CIE-LCHlch(28.14, 67.11, 310.13°)
OKLaboklab(39.97% 0.075 -0.1467)
OKLCHoklch(39.97% 0.165 297.1)
XYZxyz(9.6800, 5.5088, 28.1514)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542893 #679328
analogous
#283293 #542893 #8A2893
triadic
#542893 #935428 #289354
tetradic
#542893 #932832 #679328 #28938A
square
#542893 #932832 #679328 #28938A
split-complementary
#542893 #938A28 #329328
monochromatic
#1D0E33 #391B63 #542893 #6F35C3 #9161D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##542893#FFFFFF#000000##FFFFFF
##5428931.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)
#004396
Deuteranopia (green-blind)
#004191
Tritanopia (blue-blind)
#44435B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #542893;
/* rgb */ color: rgb(84, 40, 147);
/* oklch */ color: oklch(40.0% 0.165 297.1);
Tailwind
colors: {
  custom: {
    50: '#8a66b4',
    500: '#542893',
    950: '#000000',
  },
}
SCSS
$custom: #542893;
$custom-light: #8a66b4;
$custom-dark: #000000;
JSON
{
  "hex": "#542893",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 147
  },
  "hsl": {
    "h": 264.673,
    "s": 57.219,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39972,
    "c": 0.16474,
    "h": 297.1
  },
  "luminance": 0.05509
}

Semantic roles & 50–950 ramp

primary
#542893
secondary
#94BA5D
accent
#E047A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542893

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

Preview Lab → · Contrast checker → · Palette generator →

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