#54228E#54228E

#54228E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.166 H 299.5°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#54228E
RGBrgb(84, 34, 142)
HSLhsl(268, 61%, 35%)
HSVhsv(268, 76%, 56%)
CMYKcmyk(40.8%, 76.1%, 0%, 44.3%)
CIE-LABlab(26.68, 44.84, -50.60)
CIE-LCHlch(26.68, 67.61, 311.55°)
OKLaboklab(38.81% 0.0819 -0.1446)
OKLCHoklch(38.81% 0.166 299.5)
XYZxyz(9.1094, 4.9818, 26.0676)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54228E #5C8E22
analogous
#22268E #54228E #8A228E
triadic
#54228E #8E5422 #228E54
tetradic
#54228E #8E2226 #5C8E22 #228E8A
square
#54228E #8E2226 #5C8E22 #228E8A
split-complementary
#54228E #8E8A22 #268E22
monochromatic
#1A0A2B #37165D #54228E #712EBF #9054D6

Accessibility & contrast

On white

10.52
#54228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#54228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54228E
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54228E#FFFFFF#000000##FFFFFF
##54228E1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#463E56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #54228e;
/* rgb */ color: rgb(84, 34, 142);
/* oklch */ color: oklch(38.8% 0.166 299.5);
Tailwind
colors: {
  custom: {
    50: '#8a62b0',
    500: '#54228e',
    950: '#000000',
  },
}
SCSS
$custom: #54228e;
$custom-light: #8a62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#54228e",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 267.778,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38811,
    "c": 0.16616,
    "h": 299.5
  },
  "luminance": 0.04982
}

Semantic roles & 50–950 ramp

primary
#54228E
secondary
#8ABA52
accent
#E4439A
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #54228E

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

Preview Lab → · Contrast checker → · Palette generator →

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