#542295#542295

#542295 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.174 H 297.4°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#542295
RGBrgb(84, 34, 149)
HSLhsl(266, 63%, 36%)
HSVhsv(266, 77%, 58%)
CMYKcmyk(43.6%, 77.2%, 0%, 41.6%)
CIE-LABlab(27.29, 46.66, -53.92)
CIE-LCHlch(27.29, 71.31, 310.87°)
OKLaboklab(39.43% 0.0802 -0.1543)
OKLCHoklch(39.43% 0.174 297.4)
XYZxyz(9.6516, 5.1986, 28.9229)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542295 #639522
analogous
#222995 #542295 #8D2295
triadic
#542295 #955422 #229554
tetradic
#542295 #952229 #639522 #22958D
square
#542295 #952229 #639522 #22958D
split-complementary
#542295 #958D22 #299522
monochromatic
#1C0B31 #381763 #542295 #702DC7 #9058D9

Accessibility & contrast

On white

10.30
#542295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#542295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542295
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542295#FFFFFF#000000##FFFFFF
##5422951.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#43415A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #542295;
/* rgb */ color: rgb(84, 34, 149);
/* oklch */ color: oklch(39.4% 0.174 297.4);
Tailwind
colors: {
  custom: {
    50: '#8b63b5',
    500: '#542295',
    950: '#000000',
  },
}
SCSS
$custom: #542295;
$custom-light: #8b63b5;
$custom-dark: #000000;
JSON
{
  "hex": "#542295",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 266.087,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3943,
    "c": 0.17389,
    "h": 297.4
  },
  "luminance": 0.05199
}

Semantic roles & 50–950 ramp

primary
#542295
secondary
#90BD56
accent
#E6429F
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #542295

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

Preview Lab → · Contrast checker → · Palette generator →

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