#542283#542283

#542283 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.154 H 303.2°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#542283
RGBrgb(84, 34, 131)
HSLhsl(271, 59%, 32%)
HSVhsv(271, 74%, 51%)
CMYKcmyk(35.9%, 74%, 0%, 48.6%)
CIE-LABlab(25.77, 42.02, -45.23)
CIE-LCHlch(25.77, 61.73, 312.89°)
OKLaboklab(37.88% 0.0843 -0.1288)
OKLCHoklch(37.88% 0.154 303.2)
XYZxyz(8.3240, 4.6676, 21.9307)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542283 #518322
analogous
#242283 #542283 #832282
triadic
#542283 #835422 #228354
tetradic
#542283 #832422 #518322 #228283
square
#542283 #832422 #518322 #228283
split-complementary
#542283 #828322 #228324
monochromatic
#160922 #351552 #542283 #732FB4 #924ED1

Accessibility & contrast

On white

10.86
#542283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#542283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542283
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542283#FFFFFF#000000##FFFFFF
##5422831.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C86
Deuteranopia (green-blind)
#003D81
Tritanopia (blue-blind)
#4B3950
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #542283;
/* rgb */ color: rgb(84, 34, 131);
/* oklch */ color: oklch(37.9% 0.154 303.2);
Tailwind
colors: {
  custom: {
    50: '#8962a8',
    500: '#542283',
    950: '#000000',
  },
}
SCSS
$custom: #542283;
$custom-light: #8962a8;
$custom-dark: #000000;
JSON
{
  "hex": "#542283",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 270.928,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37877,
    "c": 0.15392,
    "h": 303.2
  },
  "luminance": 0.04668
}

Semantic roles & 50–950 ramp

primary
#542283
secondary
#7FB44C
accent
#E24691
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #542283

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

Preview Lab → · Contrast checker → · Palette generator →

#542283 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva