#542999#542999

#542999 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.171 H 295.2°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#542999
RGBrgb(84, 41, 153)
HSLhsl(263, 58%, 38%)
HSVhsv(263, 73%, 60%)
CMYKcmyk(45.1%, 73.2%, 0%, 40%)
CIE-LABlab(28.83, 44.37, -53.87)
CIE-LCHlch(28.83, 69.79, 309.48°)
OKLaboklab(40.62% 0.0727 -0.1542)
OKLCHoklch(40.62% 0.171 295.2)
XYZxyz(10.1973, 5.7703, 30.7073)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542999 #6E9929
analogous
#293699 #542999 #8C2999
triadic
#542999 #995429 #299954
tetradic
#542999 #992936 #6E9929 #29998C
square
#542999 #992936 #6E9929 #29998C
split-complementary
#542999 #998C29 #369929
monochromatic
#1F0F38 #3A1C69 #542999 #6F36C9 #9166D6

Accessibility & contrast

On white

9.75
#542999 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#542999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542999
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542999#FFFFFF#000000##FFFFFF
##5429991.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#41465E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #542999;
/* rgb */ color: rgb(84, 41, 153);
/* oklch */ color: oklch(40.6% 0.171 295.2);
Tailwind
colors: {
  custom: {
    50: '#8b67b8',
    500: '#542999',
    950: '#000000',
  },
}
SCSS
$custom: #542999;
$custom-light: #8b67b8;
$custom-dark: #000000;
JSON
{
  "hex": "#542999",
  "rgb": {
    "r": 84,
    "g": 41,
    "b": 153
  },
  "hsl": {
    "h": 263.036,
    "s": 57.732,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40618,
    "c": 0.1705,
    "h": 295.2
  },
  "luminance": 0.05771
}

Semantic roles & 50–950 ramp

primary
#542999
secondary
#99BC62
accent
#E147A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #542999

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

Preview Lab → · Contrast checker → · Palette generator →

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