#542FBC#542FBC

#542FBC is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.5% C 0.204 H 286.8°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#542FBC
RGBrgb(84, 47, 188)
HSLhsl(256, 60%, 46%)
HSVhsv(256, 75%, 74%)
CMYKcmyk(55.3%, 75%, 0%, 26.3%)
CIE-LABlab(33.02, 51.15, -68.01)
CIE-LCHlch(33.02, 85.10, 306.95°)
OKLaboklab(44.54% 0.0592 -0.1957)
OKLCHoklch(44.54% 0.204 286.8)
XYZxyz(13.7471, 7.5479, 48.2997)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FBC #97BC2F
analogous
#2F50BC #542FBC #9A2FBC
triadic
#542FBC #BC542F #2FBC54
tetradic
#542FBC #BC2F50 #97BC2F #2FBC9A
square
#542FBC #BC2F50 #97BC2F #2FBC9A
split-complementary
#542FBC #BC9A2F #50BC2F
monochromatic
#28175A #3E238B #542FBC #7654D4 #9D85E0

Accessibility & contrast

On white

8.37
#542FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#542FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FBC
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FBC#FFFFFF#000000##FFFFFF
##542FBC1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C0
Deuteranopia (green-blind)
#004AB9
Tritanopia (blue-blind)
#265673
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #542fbc;
/* rgb */ color: rgb(84, 47, 188);
/* oklch */ color: oklch(44.5% 0.204 286.8);
Tailwind
colors: {
  custom: {
    50: '#8f6cd1',
    500: '#542fbc',
    950: '#000000',
  },
}
SCSS
$custom: #542fbc;
$custom-light: #8f6cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#542fbc",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 255.745,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44542,
    "c": 0.20446,
    "h": 286.8
  },
  "luminance": 0.07549
}

Semantic roles & 50–950 ramp

primary
#542FBC
secondary
#B6CA7D
accent
#E345BA
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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