#542276#542276

#542276 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.139 H 308.3°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#542276
RGBrgb(84, 34, 118)
HSLhsl(276, 55%, 30%)
HSVhsv(276, 71%, 46%)
CMYKcmyk(28.8%, 71.2%, 0%, 53.7%)
CIE-LABlab(24.76, 38.76, -38.63)
CIE-LCHlch(24.76, 54.73, 315.10°)
OKLaboklab(36.84% 0.0864 -0.1094)
OKLCHoklch(36.84% 0.139 308.3)
XYZxyz(7.4975, 4.3370, 17.5782)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542276 #447622
analogous
#2A2276 #542276 #76226E
triadic
#542276 #765422 #227654
tetradic
#542276 #762A22 #447622 #226E76
square
#542276 #762A22 #447622 #226E76
split-complementary
#542276 #6E7622 #22762A
monochromatic
#110718 #321446 #542276 #7630A6 #9648CA

Accessibility & contrast

On white

11.25
#542276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#542276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542276
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542276#FFFFFF#000000##FFFFFF
##5422761.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003978
Deuteranopia (green-blind)
#103B74
Tritanopia (blue-blind)
#4F3449
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #542276;
/* rgb */ color: rgb(84, 34, 118);
/* oklch */ color: oklch(36.8% 0.139 308.3);
Tailwind
colors: {
  custom: {
    50: '#88619e',
    500: '#542276',
    950: '#000000',
  },
}
SCSS
$custom: #542276;
$custom-light: #88619e;
$custom-dark: #000000;
JSON
{
  "hex": "#542276",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 275.714,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36839,
    "c": 0.13938,
    "h": 308.3
  },
  "luminance": 0.04337
}

Semantic roles & 50–950 ramp

primary
#542276
secondary
#71A94B
accent
#DF4986
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #542276

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

Preview Lab → · Contrast checker → · Palette generator →

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