#542697#542697

#542697 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.172 H 296.3°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#542697
RGBrgb(84, 38, 151)
HSLhsl(264, 60%, 37%)
HSVhsv(264, 75%, 59%)
CMYKcmyk(44.4%, 74.8%, 0%, 40.8%)
CIE-LABlab(28.13, 45.31, -53.79)
CIE-LCHlch(28.13, 70.33, 310.11°)
OKLaboklab(40.07% 0.076 -0.1539)
OKLCHoklch(40.07% 0.172 296.3)
XYZxyz(9.9337, 5.5052, 29.8114)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542697 #699726
analogous
#263197 #542697 #8D2697
triadic
#542697 #975426 #269754
tetradic
#542697 #972631 #699726 #26978D
square
#542697 #972631 #699726 #26978D
split-complementary
#542697 #978D26 #319726
monochromatic
#1E0D35 #391A66 #542697 #6F32C8 #9160D7

Accessibility & contrast

On white

10.00
#542697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542697
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542697#FFFFFF#000000##FFFFFF
##5426971.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#42435C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #542697;
/* rgb */ color: rgb(84, 38, 151);
/* oklch */ color: oklch(40.1% 0.172 296.3);
Tailwind
colors: {
  custom: {
    50: '#8b65b7',
    500: '#542697',
    950: '#000000',
  },
}
SCSS
$custom: #542697;
$custom-light: #8b65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#542697",
  "rgb": {
    "r": 84,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 264.425,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40071,
    "c": 0.17169,
    "h": 296.3
  },
  "luminance": 0.05505
}

Semantic roles & 50–950 ramp

primary
#542697
secondary
#95BC5C
accent
#E345A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #542697

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

Preview Lab → · Contrast checker → · Palette generator →

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