#54236A#54236A

#54236A is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.1% C 0.124 H 313.7°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#54236A
RGBrgb(84, 35, 106)
HSLhsl(281, 50%, 28%)
HSVhsv(281, 67%, 42%)
CMYKcmyk(20.8%, 67%, 0%, 58.4%)
CIE-LABlab(24.09, 35.36, -31.99)
CIE-LCHlch(24.09, 47.68, 317.87°)
OKLaboklab(36.09% 0.086 -0.0899)
OKLCHoklch(36.09% 0.124 313.7)
XYZxyz(6.8583, 4.1277, 14.0683)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54236A #396A23
analogous
#30236A #54236A #6A235D
triadic
#54236A #6A5423 #236A54
tetradic
#54236A #6A3023 #396A23 #235D6A
square
#54236A #6A3023 #396A23 #235D6A
split-complementary
#54236A #5D6A23 #236A30
monochromatic
#120817 #30143C #54236A #783298 #9B46C2

Accessibility & contrast

On white

11.50
#54236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#54236A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54236A
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54236A#FFFFFF#000000##FFFFFF
##54236A1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05376C
Deuteranopia (green-blind)
#203A68
Tritanopia (blue-blind)
#523043
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #54236a;
/* rgb */ color: rgb(84, 35, 106);
/* oklch */ color: oklch(36.1% 0.124 313.7);
Tailwind
colors: {
  custom: {
    50: '#876195',
    500: '#54236a',
    950: '#000000',
  },
}
SCSS
$custom: #54236a;
$custom-light: #876195;
$custom-dark: #000000;
JSON
{
  "hex": "#54236a",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 281.408,
    "s": 50.355,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36088,
    "c": 0.12443,
    "h": 313.7
  },
  "luminance": 0.04127
}

Semantic roles & 50–950 ramp

primary
#54236A
secondary
#659D4B
accent
#DA4E79
background
#F8F5F9
surface
#F0EAF1
border
#CBC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #54236A

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

Preview Lab → · Contrast checker → · Palette generator →

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