#54228D#54228D

#54228D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.165 H 299.9°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#54228D
RGBrgb(84, 34, 141)
HSLhsl(268, 61%, 34%)
HSVhsv(268, 76%, 55%)
CMYKcmyk(40.4%, 75.9%, 0%, 44.7%)
CIE-LABlab(26.60, 44.58, -50.12)
CIE-LCHlch(26.60, 67.07, 311.65°)
OKLaboklab(38.73% 0.0822 -0.1431)
OKLCHoklch(38.73% 0.165 299.9)
XYZxyz(9.0347, 4.9519, 25.6740)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54228D #5B8D22
analogous
#22268D #54228D #8A228D
triadic
#54228D #8D5422 #228D54
tetradic
#54228D #8D2226 #5B8D22 #228D8A
square
#54228D #8D2226 #5B8D22 #228D8A
split-complementary
#54228D #8D8A22 #268D22
monochromatic
#190A2A #37165C #54228D #712EBE #9054D6

Accessibility & contrast

On white

10.55
#54228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#54228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54228D
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54228D#FFFFFF#000000##FFFFFF
##54228D1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#473D56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #54228d;
/* rgb */ color: rgb(84, 34, 141);
/* oklch */ color: oklch(38.7% 0.165 299.9);
Tailwind
colors: {
  custom: {
    50: '#8a62af',
    500: '#54228d',
    950: '#000000',
  },
}
SCSS
$custom: #54228d;
$custom-light: #8a62af;
$custom-dark: #000000;
JSON
{
  "hex": "#54228d",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 268.037,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38725,
    "c": 0.16505,
    "h": 299.9
  },
  "luminance": 0.04952
}

Semantic roles & 50–950 ramp

primary
#54228D
secondary
#89B951
accent
#E44499
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #54228D

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

Preview Lab → · Contrast checker → · Palette generator →

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