#542FC2#542FC2

#542FC2 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.1% C 0.211 H 285.8°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#542FC2
RGBrgb(84, 47, 194)
HSLhsl(255, 61%, 47%)
HSVhsv(255, 76%, 76%)
CMYKcmyk(56.7%, 75.8%, 0%, 23.9%)
CIE-LABlab(33.59, 52.85, -70.61)
CIE-LCHlch(33.59, 88.20, 306.81°)
OKLaboklab(45.11% 0.0576 -0.2033)
OKLCHoklch(45.11% 0.211 285.8)
XYZxyz(14.4073, 7.8121, 51.7772)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FC2 #9DC22F
analogous
#2F54C2 #542FC2 #9E2FC2
triadic
#542FC2 #C2542F #2FC254
tetradic
#542FC2 #C22F54 #9DC22F #2FC29E
square
#542FC2 #C22F54 #9DC22F #2FC29E
split-complementary
#542FC2 #C29E2F #54C22F
monochromatic
#29175F #3F2391 #542FC2 #7858D6 #9F89E2

Accessibility & contrast

On white

8.19
#542FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#542FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FC2
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FC2#FFFFFF#000000##FFFFFF
##542FC21.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C6
Deuteranopia (green-blind)
#004BBF
Tritanopia (blue-blind)
#1E5977
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #542fc2;
/* rgb */ color: rgb(84, 47, 194);
/* oklch */ color: oklch(45.1% 0.211 285.8);
Tailwind
colors: {
  custom: {
    50: '#906cd6',
    500: '#542fc2',
    950: '#000000',
  },
}
SCSS
$custom: #542fc2;
$custom-light: #906cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#542fc2",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 194
  },
  "hsl": {
    "h": 255.102,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4511,
    "c": 0.21133,
    "h": 285.8
  },
  "luminance": 0.07813
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #542FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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