#542287#542287

#542287 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.158 H 301.8°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#542287
RGBrgb(84, 34, 135)
HSLhsl(270, 60%, 33%)
HSVhsv(270, 75%, 53%)
CMYKcmyk(37.8%, 74.8%, 0%, 47.1%)
CIE-LABlab(26.09, 43.04, -47.20)
CIE-LCHlch(26.09, 63.87, 312.36°)
OKLaboklab(38.21% 0.0835 -0.1346)
OKLCHoklch(38.21% 0.158 301.8)
XYZxyz(8.6003, 4.7781, 23.3861)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542287 #558722
analogous
#222287 #542287 #862287
triadic
#542287 #875422 #228754
tetradic
#542287 #872222 #558722 #228786
square
#542287 #872222 #558722 #228786
split-complementary
#542287 #878622 #228722
monochromatic
#170925 #361656 #542287 #722EB8 #9150D3

Accessibility & contrast

On white

10.74
#542287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#542287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542287
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542287#FFFFFF#000000##FFFFFF
##5422871.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#493B52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #542287;
/* rgb */ color: rgb(84, 34, 135);
/* oklch */ color: oklch(38.2% 0.158 301.8);
Tailwind
colors: {
  custom: {
    50: '#8962ab',
    500: '#542287',
    950: '#000000',
  },
}
SCSS
$custom: #542287;
$custom-light: #8962ab;
$custom-dark: #000000;
JSON
{
  "hex": "#542287",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 269.703,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38211,
    "c": 0.15839,
    "h": 301.8
  },
  "luminance": 0.04778
}

Semantic roles & 50–950 ramp

primary
#542287
secondary
#83B74E
accent
#E34595
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #542287

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

Preview Lab → · Contrast checker → · Palette generator →

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