#542390#542390

#542390 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.167 H 298.8°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#542390
RGBrgb(84, 35, 144)
HSLhsl(267, 61%, 35%)
HSVhsv(267, 76%, 56%)
CMYKcmyk(41.7%, 75.7%, 0%, 43.5%)
CIE-LABlab(27.02, 44.89, -51.29)
CIE-LCHlch(27.02, 68.16, 311.20°)
OKLaboklab(39.1% 0.0805 -0.1466)
OKLCHoklch(39.1% 0.167 298.8)
XYZxyz(9.2899, 5.1004, 26.8752)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542390 #5F9023
analogous
#232990 #542390 #8A2390
triadic
#542390 #905423 #239054
tetradic
#542390 #902329 #5F9023 #23908A
square
#542390 #902329 #5F9023 #23908A
split-complementary
#542390 #908A23 #299023
monochromatic
#1B0B2E #37175F #542390 #712FC1 #9057D6

Accessibility & contrast

On white

10.40
#542390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#542390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542390
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542390#FFFFFF#000000##FFFFFF
##5423901.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004093
Deuteranopia (green-blind)
#003F8E
Tritanopia (blue-blind)
#453F58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #542390;
/* rgb */ color: rgb(84, 35, 144);
/* oklch */ color: oklch(39.1% 0.167 298.8);
Tailwind
colors: {
  custom: {
    50: '#8a63b1',
    500: '#542390',
    950: '#000000',
  },
}
SCSS
$custom: #542390;
$custom-light: #8a63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#542390",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 144
  },
  "hsl": {
    "h": 266.972,
    "s": 60.894,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39101,
    "c": 0.16724,
    "h": 298.8
  },
  "luminance": 0.051
}

Semantic roles & 50–950 ramp

primary
#542390
secondary
#8DBA54
accent
#E4449C
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #542390

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

Preview Lab → · Contrast checker → · Palette generator →

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