#542297#542297

#542297 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.176 H 296.9°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#542297
RGBrgb(84, 34, 151)
HSLhsl(266, 63%, 36%)
HSVhsv(266, 77%, 59%)
CMYKcmyk(44.4%, 77.5%, 0%, 40.8%)
CIE-LABlab(27.47, 47.18, -54.86)
CIE-LCHlch(27.47, 72.36, 310.70°)
OKLaboklab(39.61% 0.0796 -0.1571)
OKLCHoklch(39.61% 0.176 296.9)
XYZxyz(9.8126, 5.2630, 29.7710)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542297 #659722
analogous
#222B97 #542297 #8F2297
triadic
#542297 #975422 #229754
tetradic
#542297 #97222B #659722 #22978F
square
#542297 #97222B #659722 #22978F
split-complementary
#542297 #978F22 #2B9722
monochromatic
#1C0C33 #381765 #542297 #702DC9 #905ADA

Accessibility & contrast

On white

10.23
#542297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#542297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542297
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542297#FFFFFF#000000##FFFFFF
##5422971.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#42415B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #542297;
/* rgb */ color: rgb(84, 34, 151);
/* oklch */ color: oklch(39.6% 0.176 296.9);
Tailwind
colors: {
  custom: {
    50: '#8b63b7',
    500: '#542297',
    950: '#000000',
  },
}
SCSS
$custom: #542297;
$custom-light: #8b63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#542297",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 265.641,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39609,
    "c": 0.17609,
    "h": 296.9
  },
  "luminance": 0.05263
}

Semantic roles & 50–950 ramp

primary
#542297
secondary
#92BE57
accent
#E642A0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #542297

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

Preview Lab → · Contrast checker → · Palette generator →

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