#542385#542385

#542385 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.155 H 302.3°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#542385
RGBrgb(84, 35, 133)
HSLhsl(270, 58%, 33%)
HSVhsv(270, 74%, 52%)
CMYKcmyk(36.8%, 73.7%, 0%, 47.8%)
CIE-LABlab(26.10, 42.04, -45.94)
CIE-LCHlch(26.10, 62.27, 312.47°)
OKLaboklab(38.17% 0.0829 -0.1309)
OKLCHoklch(38.17% 0.155 302.3)
XYZxyz(8.4898, 4.7803, 22.6612)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542385 #548523
analogous
#232385 #542385 #852385
triadic
#542385 #855423 #238554
tetradic
#542385 #852323 #548523 #238585
square
#542385 #852323 #548523 #238585
split-complementary
#542385 #858523 #238523
monochromatic
#170924 #351655 #542385 #7330B5 #9151D1

Accessibility & contrast

On white

10.74
#542385 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#542385 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542385
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542385#FFFFFF#000000##FFFFFF
##5423851.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#4A3B51
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #542385;
/* rgb */ color: rgb(84, 35, 133);
/* oklch */ color: oklch(38.2% 0.155 302.3);
Tailwind
colors: {
  custom: {
    50: '#8963a9',
    500: '#542385',
    950: '#000000',
  },
}
SCSS
$custom: #542385;
$custom-light: #8963a9;
$custom-dark: #000000;
JSON
{
  "hex": "#542385",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 133
  },
  "hsl": {
    "h": 270,
    "s": 58.333,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38165,
    "c": 0.15491,
    "h": 302.3
  },
  "luminance": 0.0478
}

Semantic roles & 50–950 ramp

primary
#542385
secondary
#82B54F
accent
#E24694
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #542385

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

Preview Lab → · Contrast checker → · Palette generator →

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