#54228C#54228C

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

Color values

HEX#54228C
RGBrgb(84, 34, 140)
HSLhsl(268, 61%, 34%)
HSVhsv(268, 76%, 55%)
CMYKcmyk(40%, 75.7%, 0%, 45.1%)
CIE-LABlab(26.51, 44.32, -49.63)
CIE-LCHlch(26.51, 66.54, 311.76°)
OKLaboklab(38.64% 0.0824 -0.1417)
OKLCHoklch(38.64% 0.164 300.2)
XYZxyz(8.9606, 4.9222, 25.2839)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54228C #5A8C22
analogous
#22258C #54228C #89228C
triadic
#54228C #8C5422 #228C54
tetradic
#54228C #8C2225 #5A8C22 #228C89
square
#54228C #8C2225 #5A8C22 #228C89
split-complementary
#54228C #8C8922 #258C22
monochromatic
#190A2A #36165B #54228C #722EBD #9153D5

Accessibility & contrast

On white

10.58
#54228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54228C
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54228C#FFFFFF#000000##FFFFFF
##54228C1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#473D55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #54228c;
/* rgb */ color: rgb(84, 34, 140);
/* oklch */ color: oklch(38.6% 0.164 300.2);
Tailwind
colors: {
  custom: {
    50: '#8a62ae',
    500: '#54228c',
    950: '#000000',
  },
}
SCSS
$custom: #54228c;
$custom-light: #8a62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#54228c",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 268.302,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38638,
    "c": 0.16394,
    "h": 300.2
  },
  "luminance": 0.04922
}

Semantic roles & 50–950 ramp

primary
#54228C
secondary
#88B951
accent
#E44498
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #54228C

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

Preview Lab → · Contrast checker → · Palette generator →

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