#55227E#55227E

#55227E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.149 H 305.7°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#55227E
RGBrgb(85, 34, 126)
HSLhsl(273, 58%, 31%)
HSVhsv(273, 73%, 49%)
CMYKcmyk(32.5%, 73%, 0%, 50.6%)
CIE-LABlab(25.51, 40.97, -42.49)
CIE-LCHlch(25.51, 59.02, 313.95°)
OKLaboklab(37.6% 0.0867 -0.1207)
OKLCHoklch(37.6% 0.149 305.7)
XYZxyz(8.0834, 4.5818, 20.1931)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#55227E #4B7E22
analogous
#27227E #55227E #7E2279
triadic
#55227E #7E5522 #227E55
tetradic
#55227E #7E2722 #4B7E22 #22797E
square
#55227E #7E2722 #4B7E22 #22797E
split-complementary
#55227E #797E22 #227E27
monochromatic
#14081E #34154E #55227E #762FAE #944CCF

Accessibility & contrast

On white

10.96
#55227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#55227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #55227E
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##55227E#FFFFFF#000000##FFFFFF
##55227E1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #55227e;
/* rgb */ color: rgb(85, 34, 126);
/* oklch */ color: oklch(37.6% 0.149 305.7);
Tailwind
colors: {
  custom: {
    50: '#8962a4',
    500: '#55227e',
    950: '#000000',
  },
}
SCSS
$custom: #55227e;
$custom-light: #8962a4;
$custom-dark: #000000;
JSON
{
  "hex": "#55227e",
  "rgb": {
    "r": 85,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 273.261,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.376,
    "c": 0.1486,
    "h": 305.7
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#55227E
secondary
#78B14B
accent
#E1478C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #55227E

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

Preview Lab → · Contrast checker → · Palette generator →

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