#54229F#54229F

#54229F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.185 H 294.7°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#54229F
RGBrgb(84, 34, 159)
HSLhsl(264, 65%, 38%)
HSVhsv(264, 79%, 62%)
CMYKcmyk(47.2%, 78.6%, 0%, 37.6%)
CIE-LABlab(28.20, 49.28, -58.56)
CIE-LCHlch(28.20, 76.53, 310.08°)
OKLaboklab(40.34% 0.0773 -0.1679)
OKLCHoklch(40.34% 0.185 294.7)
XYZxyz(10.4845, 5.5318, 33.3095)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54229F #6D9F22
analogous
#222E9F #54229F #92229F
triadic
#54229F #9F5422 #229F54
tetradic
#54229F #9F222E #6D9F22 #229F92
square
#54229F #9F222E #6D9F22 #229F92
split-complementary
#54229F #9F9222 #2E9F22
monochromatic
#1F0C3A #39176D #54229F #6F2DD1 #915FDD

Accessibility & contrast

On white

9.97
#54229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#54229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54229F
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54229F#FFFFFF#000000##FFFFFF
##54229F1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#3E4560
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #54229f;
/* rgb */ color: rgb(84, 34, 159);
/* oklch */ color: oklch(40.3% 0.185 294.7);
Tailwind
colors: {
  custom: {
    50: '#8c63bc',
    500: '#54229f',
    950: '#000000',
  },
}
SCSS
$custom: #54229f;
$custom-light: #8c63bc;
$custom-dark: #000000;
JSON
{
  "hex": "#54229f",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 264,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40341,
    "c": 0.18487,
    "h": 294.7
  },
  "luminance": 0.05532
}

Semantic roles & 50–950 ramp

primary
#54229F
secondary
#99C15B
accent
#E840A5
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54229F

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

Preview Lab → · Contrast checker → · Palette generator →

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