#542282#542282

#542282 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.153 H 303.6°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#542282
RGBrgb(84, 34, 130)
HSLhsl(271, 59%, 32%)
HSVhsv(271, 74%, 51%)
CMYKcmyk(35.4%, 73.8%, 0%, 49%)
CIE-LABlab(25.69, 41.76, -44.73)
CIE-LCHlch(25.69, 61.19, 313.04°)
OKLaboklab(37.8% 0.0845 -0.1273)
OKLCHoklch(37.8% 0.153 303.6)
XYZxyz(8.2565, 4.6406, 21.5755)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542282 #508222
analogous
#242282 #542282 #822280
triadic
#542282 #825422 #228254
tetradic
#542282 #822422 #508222 #228082
square
#542282 #822422 #508222 #228082
split-complementary
#542282 #808222 #228224
monochromatic
#150921 #351551 #542282 #732FB3 #924ED1

Accessibility & contrast

On white

10.89
#542282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#542282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542282
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542282#FFFFFF#000000##FFFFFF
##5422821.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#4B3950
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #542282;
/* rgb */ color: rgb(84, 34, 130);
/* oklch */ color: oklch(37.8% 0.153 303.6);
Tailwind
colors: {
  custom: {
    50: '#8962a7',
    500: '#542282',
    950: '#000000',
  },
}
SCSS
$custom: #542282;
$custom-light: #8962a7;
$custom-dark: #000000;
JSON
{
  "hex": "#542282",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 271.25,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37795,
    "c": 0.15281,
    "h": 303.6
  },
  "luminance": 0.04641
}

Semantic roles & 50–950 ramp

primary
#542282
secondary
#7EB44C
accent
#E24691
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #542282

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

Preview Lab → · Contrast checker → · Palette generator →

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