#542595#542595

#542595 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.171 H 297.0°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#542595
RGBrgb(84, 37, 149)
HSLhsl(265, 60%, 36%)
HSVhsv(265, 75%, 58%)
CMYKcmyk(43.6%, 75.2%, 0%, 41.6%)
CIE-LABlab(27.78, 45.26, -53.12)
CIE-LCHlch(27.78, 69.79, 310.43°)
OKLaboklab(39.78% 0.0774 -0.152)
OKLCHoklch(39.78% 0.171 297)
XYZxyz(9.7411, 5.3777, 28.9527)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542595 #669525
analogous
#252E95 #542595 #8C2595
triadic
#542595 #955425 #259554
tetradic
#542595 #95252E #669525 #25958C
square
#542595 #95252E #669525 #25958C
split-complementary
#542595 #958C25 #2E9525
monochromatic
#1D0D33 #381964 #542595 #7031C6 #905ED7

Accessibility & contrast

On white

10.12
#542595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#542595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542595
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542595#FFFFFF#000000##FFFFFF
##5425951.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#004093
Tritanopia (blue-blind)
#43425B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #542595;
/* rgb */ color: rgb(84, 37, 149);
/* oklch */ color: oklch(39.8% 0.171 297.0);
Tailwind
colors: {
  custom: {
    50: '#8a64b5',
    500: '#542595',
    950: '#000000',
  },
}
SCSS
$custom: #542595;
$custom-light: #8a64b5;
$custom-dark: #000000;
JSON
{
  "hex": "#542595",
  "rgb": {
    "r": 84,
    "g": 37,
    "b": 149
  },
  "hsl": {
    "h": 265.179,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39775,
    "c": 0.17057,
    "h": 297
  },
  "luminance": 0.05378
}

Semantic roles & 50–950 ramp

primary
#542595
secondary
#93BC5A
accent
#E344A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542595

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

Preview Lab → · Contrast checker → · Palette generator →

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