#542383#542383

#542383 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.153 H 303.1°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#542383
RGBrgb(84, 35, 131)
HSLhsl(271, 58%, 33%)
HSVhsv(271, 73%, 51%)
CMYKcmyk(35.9%, 73.3%, 0%, 48.6%)
CIE-LABlab(25.94, 41.53, -44.95)
CIE-LCHlch(25.94, 61.20, 312.74°)
OKLaboklab(38% 0.0833 -0.128)
OKLCHoklch(38% 0.153 303.1)
XYZxyz(8.3530, 4.7256, 21.9404)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542383 #528323
analogous
#242383 #542383 #832382
triadic
#542383 #835423 #238354
tetradic
#542383 #832423 #528323 #238283
square
#542383 #832423 #528323 #238283
split-complementary
#542383 #828323 #238324
monochromatic
#160922 #351653 #542383 #7330B3 #9250D0

Accessibility & contrast

On white

10.80
#542383 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#542383 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542383
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542383#FFFFFF#000000##FFFFFF
##5423831.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542383;
/* rgb */ color: rgb(84, 35, 131);
/* oklch */ color: oklch(38.0% 0.153 303.1);
Tailwind
colors: {
  custom: {
    50: '#8962a8',
    500: '#542383',
    950: '#000000',
  },
}
SCSS
$custom: #542383;
$custom-light: #8962a8;
$custom-dark: #000000;
JSON
{
  "hex": "#542383",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 131
  },
  "hsl": {
    "h": 270.625,
    "s": 57.831,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38,
    "c": 0.15266,
    "h": 303.1
  },
  "luminance": 0.04726
}

Semantic roles & 50–950 ramp

primary
#542383
secondary
#80B44E
accent
#E14792
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #542383

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

Preview Lab → · Contrast checker → · Palette generator →

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