#542795#542795

#542795 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.168 H 296.7°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#542795
RGBrgb(84, 39, 149)
HSLhsl(265, 59%, 37%)
HSVhsv(265, 74%, 58%)
CMYKcmyk(43.6%, 73.8%, 0%, 41.6%)
CIE-LABlab(28.13, 44.29, -52.56)
CIE-LCHlch(28.13, 68.73, 310.12°)
OKLaboklab(40.02% 0.0755 -0.1504)
OKLCHoklch(40.02% 0.168 296.7)
XYZxyz(9.8051, 5.5056, 28.9740)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542795 #689527
analogous
#273195 #542795 #8B2795
triadic
#542795 #955427 #279554
tetradic
#542795 #952731 #689527 #27958B
square
#542795 #952731 #689527 #27958B
split-complementary
#542795 #958B27 #319527
monochromatic
#1D0E34 #391A64 #542795 #6F34C6 #9161D6

Accessibility & contrast

On white

9.99
#542795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#542795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542795
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542795#FFFFFF#000000##FFFFFF
##5427951.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#43435B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #542795;
/* rgb */ color: rgb(84, 39, 149);
/* oklch */ color: oklch(40.0% 0.168 296.7);
Tailwind
colors: {
  custom: {
    50: '#8a65b5',
    500: '#542795',
    950: '#000000',
  },
}
SCSS
$custom: #542795;
$custom-light: #8a65b5;
$custom-dark: #000000;
JSON
{
  "hex": "#542795",
  "rgb": {
    "r": 84,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 264.545,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40019,
    "c": 0.16825,
    "h": 296.7
  },
  "luminance": 0.05506
}

Semantic roles & 50–950 ramp

primary
#542795
secondary
#94BB5D
accent
#E246A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542795

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

Preview Lab → · Contrast checker → · Palette generator →

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