#54228B#54228B

#54228B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.163 H 300.5°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#54228B
RGBrgb(84, 34, 139)
HSLhsl(269, 61%, 34%)
HSVhsv(269, 76%, 55%)
CMYKcmyk(39.6%, 75.5%, 0%, 45.5%)
CIE-LABlab(26.43, 44.06, -49.15)
CIE-LCHlch(26.43, 66.01, 311.88°)
OKLaboklab(38.55% 0.0826 -0.1403)
OKLCHoklch(38.55% 0.163 300.5)
XYZxyz(8.8872, 4.8929, 24.8973)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54228B #598B22
analogous
#22258B #54228B #89228B
triadic
#54228B #8B5422 #228B54
tetradic
#54228B #8B2225 #598B22 #228B89
square
#54228B #8B2225 #598B22 #228B89
split-complementary
#54228B #8B8922 #258B22
monochromatic
#190A29 #36165A #54228B #722EBC #9153D5

Accessibility & contrast

On white

10.61
#54228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#54228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54228B
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54228B#FFFFFF#000000##FFFFFF
##54228B1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#483D55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #54228b;
/* rgb */ color: rgb(84, 34, 139);
/* oklch */ color: oklch(38.6% 0.163 300.5);
Tailwind
colors: {
  custom: {
    50: '#8a62ae',
    500: '#54228b',
    950: '#000000',
  },
}
SCSS
$custom: #54228b;
$custom-light: #8a62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#54228b",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 268.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38552,
    "c": 0.16284,
    "h": 300.5
  },
  "luminance": 0.04893
}

Semantic roles & 50–950 ramp

primary
#54228B
secondary
#87B850
accent
#E44498
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #54228B

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

Preview Lab → · Contrast checker → · Palette generator →

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