#542575#542575

#542575 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.134 H 308.2°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#542575
RGBrgb(84, 37, 117)
HSLhsl(275, 52%, 30%)
HSVhsv(275, 68%, 46%)
CMYKcmyk(28.2%, 68.4%, 0%, 54.1%)
CIE-LABlab(25.24, 36.98, -37.22)
CIE-LCHlch(25.24, 52.47, 314.82°)
OKLaboklab(37.16% 0.0828 -0.1053)
OKLCHoklch(37.16% 0.134 308.2)
XYZxyz(7.5280, 4.4924, 17.2967)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542575 #467525
analogous
#2C2575 #542575 #75256E
triadic
#542575 #755425 #257554
tetradic
#542575 #752C25 #467525 #256E75
square
#542575 #752C25 #467525 #256E75
split-complementary
#542575 #6E7525 #25752C
monochromatic
#110818 #331647 #542575 #7534A3 #954EC7

Accessibility & contrast

On white

11.06
#542575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#542575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542575
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542575#FFFFFF#000000##FFFFFF
##5425751.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A77
Deuteranopia (green-blind)
#163C73
Tritanopia (blue-blind)
#4F3649
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #542575;
/* rgb */ color: rgb(84, 37, 117);
/* oklch */ color: oklch(37.2% 0.134 308.2);
Tailwind
colors: {
  custom: {
    50: '#87639d',
    500: '#542575',
    950: '#000000',
  },
}
SCSS
$custom: #542575;
$custom-light: #87639d;
$custom-dark: #000000;
JSON
{
  "hex": "#542575",
  "rgb": {
    "r": 84,
    "g": 37,
    "b": 117
  },
  "hsl": {
    "h": 275.25,
    "s": 51.948,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37161,
    "c": 0.13394,
    "h": 308.2
  },
  "luminance": 0.04492
}

Semantic roles & 50–950 ramp

primary
#542575
secondary
#73A84E
accent
#DB4C87
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #542575

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

Preview Lab → · Contrast checker → · Palette generator →

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