#54229E#54229E

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

Color values

HEX#54229E
RGBrgb(84, 34, 158)
HSLhsl(264, 65%, 38%)
HSVhsv(264, 78%, 62%)
CMYKcmyk(46.8%, 78.5%, 0%, 38%)
CIE-LABlab(28.11, 49.02, -58.10)
CIE-LCHlch(28.11, 76.02, 310.15°)
OKLaboklab(40.25% 0.0776 -0.1666)
OKLCHoklch(40.25% 0.184 295)
XYZxyz(10.3981, 5.4972, 32.8543)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54229E #6C9E22
analogous
#222E9E #54229E #92229E
triadic
#54229E #9E5422 #229E54
tetradic
#54229E #9E222E #6C9E22 #229E92
square
#54229E #9E222E #6C9E22 #229E92
split-complementary
#54229E #9E9222 #2E9E22
monochromatic
#1E0C39 #39176C #54229E #6F2DD0 #915EDC

Accessibility & contrast

On white

10.00
#54229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#54229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54229E
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54229E#FFFFFF#000000##FFFFFF
##54229E1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54229e;
/* rgb */ color: rgb(84, 34, 158);
/* oklch */ color: oklch(40.2% 0.184 295.0);
Tailwind
colors: {
  custom: {
    50: '#8c63bc',
    500: '#54229e',
    950: '#000000',
  },
}
SCSS
$custom: #54229e;
$custom-light: #8c63bc;
$custom-dark: #000000;
JSON
{
  "hex": "#54229e",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 264.194,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40249,
    "c": 0.18378,
    "h": 295
  },
  "luminance": 0.05497
}

Semantic roles & 50–950 ramp

primary
#54229E
secondary
#98C15B
accent
#E840A4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54229E

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

Preview Lab → · Contrast checker → · Palette generator →

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