#542290#542290

#542290 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.168 H 298.9°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#542290
RGBrgb(84, 34, 144)
HSLhsl(267, 62%, 35%)
HSVhsv(267, 76%, 56%)
CMYKcmyk(41.7%, 76.4%, 0%, 43.5%)
CIE-LABlab(26.86, 45.36, -51.55)
CIE-LCHlch(26.86, 68.67, 311.34°)
OKLaboklab(38.99% 0.0814 -0.1474)
OKLCHoklch(38.99% 0.168 298.9)
XYZxyz(9.2609, 5.0424, 26.8655)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542290 #5E9022
analogous
#222790 #542290 #8B2290
triadic
#542290 #905422 #229054
tetradic
#542290 #902227 #5E9022 #22908B
square
#542290 #902227 #5E9022 #22908B
split-complementary
#542290 #908B22 #279022
monochromatic
#1A0B2D #37165E #542290 #712EC2 #9055D7

Accessibility & contrast

On white

10.46
#542290 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#542290 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542290
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542290#FFFFFF#000000##FFFFFF
##5422901.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F93
Deuteranopia (green-blind)
#003E8E
Tritanopia (blue-blind)
#453F57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #542290;
/* rgb */ color: rgb(84, 34, 144);
/* oklch */ color: oklch(39.0% 0.168 298.9);
Tailwind
colors: {
  custom: {
    50: '#8a63b1',
    500: '#542290',
    950: '#000000',
  },
}
SCSS
$custom: #542290;
$custom-light: #8a63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#542290",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 144
  },
  "hsl": {
    "h": 267.273,
    "s": 61.798,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38986,
    "c": 0.16838,
    "h": 298.9
  },
  "luminance": 0.05042
}

Semantic roles & 50–950 ramp

primary
#542290
secondary
#8CBB53
accent
#E5439B
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #542290

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

Preview Lab → · Contrast checker → · Palette generator →

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