#54227E#54227E

#54227E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.148 H 305.1°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#54227E
RGBrgb(84, 34, 126)
HSLhsl(273, 58%, 31%)
HSVhsv(273, 73%, 49%)
CMYKcmyk(33.3%, 73%, 0%, 50.6%)
CIE-LABlab(25.37, 40.75, -42.72)
CIE-LCHlch(25.37, 59.04, 313.65°)
OKLaboklab(37.47% 0.0852 -0.1214)
OKLCHoklch(37.47% 0.148 305.1)
XYZxyz(7.9932, 4.5353, 20.1889)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54227E #4C7E22
analogous
#26227E #54227E #7E227A
triadic
#54227E #7E5422 #227E54
tetradic
#54227E #7E2622 #4C7E22 #227A7E
square
#54227E #7E2622 #4C7E22 #227A7E
split-complementary
#54227E #7A7E22 #227E26
monochromatic
#14081E #34154E #54227E #742FAE #934CCF

Accessibility & contrast

On white

11.01
#54227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#54227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54227E
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54227E#FFFFFF#000000##FFFFFF
##54227E1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#4C374D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54227e;
/* rgb */ color: rgb(84, 34, 126);
/* oklch */ color: oklch(37.5% 0.148 305.1);
Tailwind
colors: {
  custom: {
    50: '#8862a4',
    500: '#54227e',
    950: '#000000',
  },
}
SCSS
$custom: #54227e;
$custom-light: #8862a4;
$custom-dark: #000000;
JSON
{
  "hex": "#54227e",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 272.609,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37469,
    "c": 0.14834,
    "h": 305.1
  },
  "luminance": 0.04535
}

Semantic roles & 50–950 ramp

primary
#54227E
secondary
#79B14B
accent
#E1478D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #54227E

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

Preview Lab → · Contrast checker → · Palette generator →

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