#542FC3#542FC3

#542FC3 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.212 H 285.7°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#542FC3
RGBrgb(84, 47, 195)
HSLhsl(255, 61%, 47%)
HSVhsv(255, 76%, 76%)
CMYKcmyk(56.9%, 75.9%, 0%, 23.5%)
CIE-LABlab(33.68, 53.13, -71.04)
CIE-LCHlch(33.68, 88.71, 306.79°)
OKLaboklab(45.21% 0.0574 -0.2046)
OKLCHoklch(45.21% 0.212 285.7)
XYZxyz(14.5200, 7.8571, 52.3706)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FC3 #9EC32F
analogous
#2F54C3 #542FC3 #9E2FC3
triadic
#542FC3 #C3542F #2FC354
tetradic
#542FC3 #C32F54 #9EC32F #2FC39E
square
#542FC3 #C32F54 #9EC32F #2FC39E
split-complementary
#542FC3 #C39E2F #54C32F
monochromatic
#2A1760 #3F2392 #542FC3 #7858D7 #A08AE3

Accessibility & contrast

On white

8.17
#542FC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#542FC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FC3
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FC3#FFFFFF#000000##FFFFFF
##542FC31.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C7
Deuteranopia (green-blind)
#004BC0
Tritanopia (blue-blind)
#1C5977
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #542fc3;
/* rgb */ color: rgb(84, 47, 195);
/* oklch */ color: oklch(45.2% 0.212 285.7);
Tailwind
colors: {
  custom: {
    50: '#906cd6',
    500: '#542fc3',
    950: '#000000',
  },
}
SCSS
$custom: #542fc3;
$custom-light: #906cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#542fc3",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 195
  },
  "hsl": {
    "h": 255,
    "s": 61.157,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45206,
    "c": 0.21247,
    "h": 285.7
  },
  "luminance": 0.07858
}

Semantic roles & 50–950 ramp

primary
#542FC3
secondary
#BACD81
accent
#E444BC
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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