#54229D#54229D

#54229D is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.183 H 295.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#54229D
RGBrgb(84, 34, 157)
HSLhsl(264, 64%, 37%)
HSVhsv(264, 78%, 62%)
CMYKcmyk(46.5%, 78.3%, 0%, 38.4%)
CIE-LABlab(28.01, 48.76, -57.64)
CIE-LCHlch(28.01, 75.49, 310.23°)
OKLaboklab(40.16% 0.0779 -0.1652)
OKLCHoklch(40.16% 0.183 295.2)
XYZxyz(10.3123, 5.4629, 32.4029)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54229D #6B9D22
analogous
#222E9D #54229D #91229D
triadic
#54229D #9D5422 #229D54
tetradic
#54229D #9D222E #6B9D22 #229D91
square
#54229D #9D222E #6B9D22 #229D91
split-complementary
#54229D #9D9122 #2E9D22
monochromatic
#1E0C38 #39176B #54229D #6F2DCF #915DDC

Accessibility & contrast

On white

10.04
#54229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54229D
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54229D#FFFFFF#000000##FFFFFF
##54229D1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#3F445F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #54229d;
/* rgb */ color: rgb(84, 34, 157);
/* oklch */ color: oklch(40.2% 0.183 295.2);
Tailwind
colors: {
  custom: {
    50: '#8c63bb',
    500: '#54229d',
    950: '#000000',
  },
}
SCSS
$custom: #54229d;
$custom-light: #8c63bb;
$custom-dark: #000000;
JSON
{
  "hex": "#54229d",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 264.39,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40156,
    "c": 0.18268,
    "h": 295.2
  },
  "luminance": 0.05463
}

Semantic roles & 50–950 ramp

primary
#54229D
secondary
#97C15A
accent
#E740A4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54229D

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

Preview Lab → · Contrast checker → · Palette generator →

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