#542F90#542F90

#542F90 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.152 H 296.5°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#542F90
RGBrgb(84, 47, 144)
HSLhsl(263, 51%, 37%)
HSVhsv(263, 67%, 56%)
CMYKcmyk(41.7%, 67.4%, 0%, 43.5%)
CIE-LABlab(29.24, 38.71, -47.67)
CIE-LCHlch(29.24, 61.41, 309.07°)
OKLaboklab(40.68% 0.068 -0.136)
OKLCHoklch(40.68% 0.152 296.5)
XYZxyz(9.7054, 5.9313, 27.0137)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542F90 #6B902F
analogous
#2F3A90 #542F90 #852F90
triadic
#542F90 #90542F #2F9054
tetradic
#542F90 #902F3A #6B902F #2F9085
square
#542F90 #902F3A #6B902F #2F9085
split-complementary
#542F90 #90852F #3A902F
monochromatic
#1E1134 #392062 #542F90 #6F3EBE #916BCF

Accessibility & contrast

On white

9.61
#542F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#542F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542F90
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542F90#FFFFFF#000000##FFFFFF
##542F901.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#00448E
Tritanopia (blue-blind)
#45465B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #542f90;
/* rgb */ color: rgb(84, 47, 144);
/* oklch */ color: oklch(40.7% 0.152 296.5);
Tailwind
colors: {
  custom: {
    50: '#896ab1',
    500: '#542f90',
    950: '#000000',
  },
}
SCSS
$custom: #542f90;
$custom-light: #896ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#542f90",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 144
  },
  "hsl": {
    "h": 262.887,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40683,
    "c": 0.15206,
    "h": 296.5
  },
  "luminance": 0.05931
}

Semantic roles & 50–950 ramp

primary
#542F90
secondary
#97B665
accent
#DA4EA5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542F90

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

Preview Lab → · Contrast checker → · Palette generator →

#542F90 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva