#54239A#54239A

#54239A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.178 H 295.9°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#54239A
RGBrgb(84, 35, 154)
HSLhsl(265, 63%, 37%)
HSVhsv(265, 77%, 60%)
CMYKcmyk(45.5%, 77.3%, 0%, 39.6%)
CIE-LABlab(27.90, 47.52, -56.00)
CIE-LCHlch(27.90, 73.44, 310.32°)
OKLaboklab(39.99% 0.0779 -0.1604)
OKLCHoklch(39.99% 0.178 295.9)
XYZxyz(10.0884, 5.4197, 31.0802)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54239A #699A23
analogous
#232D9A #54239A #90239A
triadic
#54239A #9A5423 #239A54
tetradic
#54239A #9A232D #699A23 #239A90
square
#54239A #9A232D #699A23 #239A90
split-complementary
#54239A #9A9023 #2D9A23
monochromatic
#1E0C36 #391868 #54239A #6F2ECC #915DDA

Accessibility & contrast

On white

10.08
#54239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#54239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54239A
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54239A#FFFFFF#000000##FFFFFF
##54239A1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#41435D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #54239a;
/* rgb */ color: rgb(84, 35, 154);
/* oklch */ color: oklch(40.0% 0.178 295.9);
Tailwind
colors: {
  custom: {
    50: '#8b64b9',
    500: '#54239a',
    950: '#000000',
  },
}
SCSS
$custom: #54239a;
$custom-light: #8b64b9;
$custom-dark: #000000;
JSON
{
  "hex": "#54239a",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 264.706,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39991,
    "c": 0.17835,
    "h": 295.9
  },
  "luminance": 0.0542
}

Semantic roles & 50–950 ramp

primary
#54239A
secondary
#95BF5A
accent
#E642A2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54239A

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

Preview Lab → · Contrast checker → · Palette generator →

#54239A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva