#542293#542293

#542293 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.172 H 298.0°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#542293
RGBrgb(84, 34, 147)
HSLhsl(267, 62%, 35%)
HSVhsv(267, 77%, 58%)
CMYKcmyk(42.9%, 76.9%, 0%, 42.4%)
CIE-LABlab(27.12, 46.14, -52.98)
CIE-LCHlch(27.12, 70.25, 311.05°)
OKLaboklab(39.25% 0.0807 -0.1515)
OKLCHoklch(39.25% 0.172 298)
XYZxyz(9.4933, 5.1353, 28.0892)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542293 #619322
analogous
#222893 #542293 #8C2293
triadic
#542293 #935422 #229354
tetradic
#542293 #932228 #619322 #22938C
square
#542293 #932228 #619322 #22938C
split-complementary
#542293 #938C22 #289322
monochromatic
#1B0B30 #381761 #542293 #702DC5 #9057D8

Accessibility & contrast

On white

10.36
#542293 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#542293 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542293
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542293#FFFFFF#000000##FFFFFF
##5422931.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#003F91
Tritanopia (blue-blind)
#444059
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #542293;
/* rgb */ color: rgb(84, 34, 147);
/* oklch */ color: oklch(39.3% 0.172 298.0);
Tailwind
colors: {
  custom: {
    50: '#8a63b4',
    500: '#542293',
    950: '#000000',
  },
}
SCSS
$custom: #542293;
$custom-light: #8a63b4;
$custom-dark: #000000;
JSON
{
  "hex": "#542293",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 147
  },
  "hsl": {
    "h": 266.549,
    "s": 62.431,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39251,
    "c": 0.17169,
    "h": 298
  },
  "luminance": 0.05135
}

Semantic roles & 50–950 ramp

primary
#542293
secondary
#8EBC55
accent
#E5429D
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #542293

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

Preview Lab → · Contrast checker → · Palette generator →

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