#54228F#54228F

#54228F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.167 H 299.2°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#54228F
RGBrgb(84, 34, 143)
HSLhsl(268, 62%, 35%)
HSVhsv(268, 76%, 56%)
CMYKcmyk(41.3%, 76.2%, 0%, 43.9%)
CIE-LABlab(26.77, 45.10, -51.08)
CIE-LCHlch(26.77, 68.14, 311.44°)
OKLaboklab(38.9% 0.0817 -0.146)
OKLCHoklch(38.9% 0.167 299.2)
XYZxyz(9.1849, 5.0119, 26.4648)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54228F #5D8F22
analogous
#22268F #54228F #8B228F
triadic
#54228F #8F5422 #228F54
tetradic
#54228F #8F2226 #5D8F22 #228F8B
square
#54228F #8F2226 #5D8F22 #228F8B
split-complementary
#54228F #8F8B22 #268F22
monochromatic
#1A0A2C #37165E #54228F #712EC0 #9055D7

Accessibility & contrast

On white

10.49
#54228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54228F
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54228F#FFFFFF#000000##FFFFFF
##54228F1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#463E57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #54228f;
/* rgb */ color: rgb(84, 34, 143);
/* oklch */ color: oklch(38.9% 0.167 299.2);
Tailwind
colors: {
  custom: {
    50: '#8a62b1',
    500: '#54228f',
    950: '#000000',
  },
}
SCSS
$custom: #54228f;
$custom-light: #8a62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#54228f",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 267.523,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38899,
    "c": 0.16726,
    "h": 299.2
  },
  "luminance": 0.05012
}

Semantic roles & 50–950 ramp

primary
#54228F
secondary
#8BBA52
accent
#E5439B
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #54228F

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

Preview Lab → · Contrast checker → · Palette generator →

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