#54227D#54227D

#54227D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.147 H 305.4°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#54227D
RGBrgb(84, 34, 125)
HSLhsl(273, 57%, 31%)
HSVhsv(273, 73%, 49%)
CMYKcmyk(32.8%, 72.8%, 0%, 51%)
CIE-LABlab(25.29, 40.50, -42.22)
CIE-LCHlch(25.29, 58.50, 313.81°)
OKLaboklab(37.39% 0.0854 -0.1199)
OKLCHoklch(37.39% 0.147 305.4)
XYZxyz(7.9290, 4.5096, 19.8508)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54227D #4B7D22
analogous
#26227D #54227D #7D2278
triadic
#54227D #7D5422 #227D54
tetradic
#54227D #7D2622 #4B7D22 #22787D
square
#54227D #7D2622 #4B7D22 #22787D
split-complementary
#54227D #787D22 #227D26
monochromatic
#13081D #34154D #54227D #742FAD #934BCE

Accessibility & contrast

On white

11.04
#54227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#54227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54227D
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54227D#FFFFFF#000000##FFFFFF
##54227D1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#4D374D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54227d;
/* rgb */ color: rgb(84, 34, 125);
/* oklch */ color: oklch(37.4% 0.147 305.4);
Tailwind
colors: {
  custom: {
    50: '#8862a3',
    500: '#54227d',
    950: '#000000',
  },
}
SCSS
$custom: #54227d;
$custom-light: #8862a3;
$custom-dark: #000000;
JSON
{
  "hex": "#54227d",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 272.967,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37389,
    "c": 0.14722,
    "h": 305.4
  },
  "luminance": 0.0451
}

Semantic roles & 50–950 ramp

primary
#54227D
secondary
#78B04B
accent
#E0478C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #54227D

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

Preview Lab → · Contrast checker → · Palette generator →

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