#54229C#54229C

#54229C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.182 H 295.5°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#54229C
RGBrgb(84, 34, 156)
HSLhsl(265, 64%, 37%)
HSVhsv(265, 78%, 61%)
CMYKcmyk(46.2%, 78.2%, 0%, 38.8%)
CIE-LABlab(27.92, 48.49, -57.18)
CIE-LCHlch(27.92, 74.97, 310.30°)
OKLaboklab(40.06% 0.0782 -0.1639)
OKLCHoklch(40.06% 0.182 295.5)
XYZxyz(10.2273, 5.4289, 31.9551)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54229C #6A9C22
analogous
#222D9C #54229C #91229C
triadic
#54229C #9C5422 #229C54
tetradic
#54229C #9C222D #6A9C22 #229C91
square
#54229C #9C222D #6A9C22 #229C91
split-complementary
#54229C #9C9122 #2D9C22
monochromatic
#1E0C38 #39176A #54229C #6F2DCE #915DDC

Accessibility & contrast

On white

10.07
#54229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#54229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54229C
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54229C#FFFFFF#000000##FFFFFF
##54229C1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#40445E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #54229c;
/* rgb */ color: rgb(84, 34, 156);
/* oklch */ color: oklch(40.1% 0.182 295.5);
Tailwind
colors: {
  custom: {
    50: '#8c63ba',
    500: '#54229c',
    950: '#000000',
  },
}
SCSS
$custom: #54229c;
$custom-light: #8c63ba;
$custom-dark: #000000;
JSON
{
  "hex": "#54229c",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 264.59,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40064,
    "c": 0.18159,
    "h": 295.5
  },
  "luminance": 0.05429
}

Semantic roles & 50–950 ramp

primary
#54229C
secondary
#96C05A
accent
#E741A3
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54229C

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

Preview Lab → · Contrast checker → · Palette generator →

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