#542FB9#542FB9

#542FB9 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.3% C 0.201 H 287.4°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#542FB9
RGBrgb(84, 47, 185)
HSLhsl(256, 59%, 45%)
HSVhsv(256, 75%, 73%)
CMYKcmyk(54.6%, 74.6%, 0%, 27.5%)
CIE-LABlab(32.74, 50.30, -66.69)
CIE-LCHlch(32.74, 83.54, 307.02°)
OKLaboklab(44.26% 0.06 -0.1919)
OKLCHoklch(44.26% 0.201 287.4)
XYZxyz(13.4270, 7.4199, 46.6142)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FB9 #94B92F
analogous
#2F4FB9 #542FB9 #992FB9
triadic
#542FB9 #B9542F #2FB954
tetradic
#542FB9 #B92F4F #94B92F #2FB999
square
#542FB9 #B92F4F #94B92F #2FB999
split-complementary
#542FB9 #B9992F #4FB92F
monochromatic
#281657 #3E2388 #542FB9 #7552D3 #9C83DF

Accessibility & contrast

On white

8.45
#542FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#542FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FB9
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FB9#FFFFFF#000000##FFFFFF
##542FB91.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BD
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#295572
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #542fb9;
/* rgb */ color: rgb(84, 47, 185);
/* oklch */ color: oklch(44.3% 0.201 287.4);
Tailwind
colors: {
  custom: {
    50: '#8f6ccf',
    500: '#542fb9',
    950: '#000000',
  },
}
SCSS
$custom: #542fb9;
$custom-light: #8f6ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#542fb9",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 256.087,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44262,
    "c": 0.20101,
    "h": 287.4
  },
  "luminance": 0.07421
}

Semantic roles & 50–950 ramp

primary
#542FB9
secondary
#B4C97B
accent
#E345B8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #542FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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