#542695#542695

#542695 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.169 H 296.8°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#542695
RGBrgb(84, 38, 149)
HSLhsl(265, 59%, 37%)
HSVhsv(265, 74%, 58%)
CMYKcmyk(43.6%, 74.5%, 0%, 41.6%)
CIE-LABlab(27.96, 44.78, -52.84)
CIE-LCHlch(27.96, 69.26, 310.28°)
OKLaboklab(39.9% 0.0765 -0.1512)
OKLCHoklch(39.9% 0.169 296.8)
XYZxyz(9.7727, 5.4408, 28.9632)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542695 #679526
analogous
#263095 #542695 #8C2695
triadic
#542695 #955426 #269554
tetradic
#542695 #952630 #679526 #26958C
square
#542695 #952630 #679526 #26958C
split-complementary
#542695 #958C26 #309526
monochromatic
#1D0D33 #391A64 #542695 #6F32C6 #915FD6

Accessibility & contrast

On white

10.06
#542695 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#542695 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542695
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542695#FFFFFF#000000##FFFFFF
##5426951.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542695;
/* rgb */ color: rgb(84, 38, 149);
/* oklch */ color: oklch(39.9% 0.169 296.8);
Tailwind
colors: {
  custom: {
    50: '#8a65b5',
    500: '#542695',
    950: '#000000',
  },
}
SCSS
$custom: #542695;
$custom-light: #8a65b5;
$custom-dark: #000000;
JSON
{
  "hex": "#542695",
  "rgb": {
    "r": 84,
    "g": 38,
    "b": 149
  },
  "hsl": {
    "h": 264.865,
    "s": 59.358,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39896,
    "c": 0.16942,
    "h": 296.8
  },
  "luminance": 0.05441
}

Semantic roles & 50–950 ramp

primary
#542695
secondary
#94BB5B
accent
#E345A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542695

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

Preview Lab → · Contrast checker → · Palette generator →

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