#542280#542280

#542280 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.151 H 304.3°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#542280
RGBrgb(84, 34, 128)
HSLhsl(272, 58%, 32%)
HSVhsv(272, 73%, 50%)
CMYKcmyk(34.4%, 73.4%, 0%, 49.8%)
CIE-LABlab(25.53, 41.26, -43.73)
CIE-LCHlch(25.53, 60.12, 313.33°)
OKLaboklab(37.63% 0.0849 -0.1244)
OKLCHoklch(37.63% 0.151 304.3)
XYZxyz(8.1236, 4.5874, 20.8754)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542280 #4E8022
analogous
#252280 #542280 #80227D
triadic
#542280 #805422 #228054
tetradic
#542280 #802522 #4E8022 #227D80
square
#542280 #802522 #4E8022 #227D80
split-complementary
#542280 #7D8022 #228025
monochromatic
#15081F #341550 #542280 #742FB0 #924DD0

Accessibility & contrast

On white

10.95
#542280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#542280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542280
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542280#FFFFFF#000000##FFFFFF
##5422801.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#4C384E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #542280;
/* rgb */ color: rgb(84, 34, 128);
/* oklch */ color: oklch(37.6% 0.151 304.3);
Tailwind
colors: {
  custom: {
    50: '#8862a6',
    500: '#542280',
    950: '#000000',
  },
}
SCSS
$custom: #542280;
$custom-light: #8862a6;
$custom-dark: #000000;
JSON
{
  "hex": "#542280",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 128
  },
  "hsl": {
    "h": 271.915,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37631,
    "c": 0.15057,
    "h": 304.3
  },
  "luminance": 0.04587
}

Semantic roles & 50–950 ramp

primary
#542280
secondary
#7CB24B
accent
#E1478F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #542280

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

Preview Lab → · Contrast checker → · Palette generator →

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