#542285#542285

#542285 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.156 H 302.5°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#542285
RGBrgb(84, 34, 133)
HSLhsl(270, 59%, 33%)
HSVhsv(270, 74%, 52%)
CMYKcmyk(36.8%, 74.4%, 0%, 47.8%)
CIE-LABlab(25.93, 42.53, -46.22)
CIE-LCHlch(25.93, 62.80, 312.62°)
OKLaboklab(38.04% 0.0839 -0.1317)
OKLCHoklch(38.04% 0.156 302.5)
XYZxyz(8.4608, 4.7223, 22.6515)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542285 #538522
analogous
#232285 #542285 #852284
triadic
#542285 #855422 #228554
tetradic
#542285 #852322 #538522 #228485
square
#542285 #852322 #538522 #228485
split-complementary
#542285 #848522 #228523
monochromatic
#160924 #351654 #542285 #732EB6 #914FD2

Accessibility & contrast

On white

10.80
#542285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#542285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542285
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542285#FFFFFF#000000##FFFFFF
##5422851.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#4A3A51
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #542285;
/* rgb */ color: rgb(84, 34, 133);
/* oklch */ color: oklch(38.0% 0.156 302.5);
Tailwind
colors: {
  custom: {
    50: '#8962a9',
    500: '#542285',
    950: '#000000',
  },
}
SCSS
$custom: #542285;
$custom-light: #8962a9;
$custom-dark: #000000;
JSON
{
  "hex": "#542285",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 270.303,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38044,
    "c": 0.15615,
    "h": 302.5
  },
  "luminance": 0.04722
}

Semantic roles & 50–950 ramp

primary
#542285
secondary
#81B64D
accent
#E24593
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #542285

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

Preview Lab → · Contrast checker → · Palette generator →

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