#542394#542394

#542394 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.172 H 297.6°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#542394
RGBrgb(84, 35, 148)
HSLhsl(266, 62%, 36%)
HSVhsv(266, 76%, 58%)
CMYKcmyk(43.2%, 76.4%, 0%, 42%)
CIE-LABlab(27.37, 45.94, -53.19)
CIE-LCHlch(27.37, 70.28, 310.82°)
OKLaboklab(39.45% 0.0795 -0.1522)
OKLCHoklch(39.45% 0.172 297.6)
XYZxyz(9.6011, 5.2248, 28.5139)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542394 #639423
analogous
#232A94 #542394 #8C2394
triadic
#542394 #945423 #239454
tetradic
#542394 #94232A #639423 #23948C
square
#542394 #94232A #639423 #23948C
split-complementary
#542394 #948C23 #2A9423
monochromatic
#1C0C31 #381763 #542394 #702FC5 #905AD8

Accessibility & contrast

On white

10.27
#542394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#542394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542394
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542394#FFFFFF#000000##FFFFFF
##5423941.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#44415A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #542394;
/* rgb */ color: rgb(84, 35, 148);
/* oklch */ color: oklch(39.5% 0.172 297.6);
Tailwind
colors: {
  custom: {
    50: '#8a63b4',
    500: '#542394',
    950: '#000000',
  },
}
SCSS
$custom: #542394;
$custom-light: #8a63b4;
$custom-dark: #000000;
JSON
{
  "hex": "#542394",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 148
  },
  "hsl": {
    "h": 266.018,
    "s": 61.749,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39453,
    "c": 0.17169,
    "h": 297.6
  },
  "luminance": 0.05225
}

Semantic roles & 50–950 ramp

primary
#542394
secondary
#90BC57
accent
#E5439F
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542394

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

Preview Lab → · Contrast checker → · Palette generator →

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