#54236B#54236B

#54236B is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.2% C 0.126 H 313.2°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#54236B
RGBrgb(84, 35, 107)
HSLhsl(281, 51%, 28%)
HSVhsv(281, 67%, 42%)
CMYKcmyk(21.5%, 67.3%, 0%, 58%)
CIE-LABlab(24.16, 35.60, -32.53)
CIE-LCHlch(24.16, 48.22, 317.58°)
OKLaboklab(36.16% 0.086 -0.0915)
OKLCHoklch(36.16% 0.126 313.2)
XYZxyz(6.9106, 4.1486, 14.3438)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54236B #3A6B23
analogous
#30236B #54236B #6B235E
triadic
#54236B #6B5423 #236B54
tetradic
#54236B #6B3023 #3A6B23 #235E6B
square
#54236B #6B3023 #3A6B23 #235E6B
split-complementary
#54236B #5E6B23 #236B30
monochromatic
#120817 #30143D #54236B #783299 #9B46C2

Accessibility & contrast

On white

11.48
#54236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54236B
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54236B#FFFFFF#000000##FFFFFF
##54236B1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04376D
Deuteranopia (green-blind)
#1F3B69
Tritanopia (blue-blind)
#523143
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #54236b;
/* rgb */ color: rgb(84, 35, 107);
/* oklch */ color: oklch(36.2% 0.126 313.2);
Tailwind
colors: {
  custom: {
    50: '#876196',
    500: '#54236b',
    950: '#000000',
  },
}
SCSS
$custom: #54236b;
$custom-light: #876196;
$custom-dark: #000000;
JSON
{
  "hex": "#54236b",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 280.833,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36159,
    "c": 0.12556,
    "h": 313.2
  },
  "luminance": 0.04148
}

Semantic roles & 50–950 ramp

primary
#54236B
secondary
#669E4B
accent
#DA4E7B
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #54236B

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

Preview Lab → · Contrast checker → · Palette generator →

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