#55127E#55127E

#55127E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.166 H 307.7°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#55127E
RGBrgb(85, 18, 126)
HSLhsl(277, 75%, 28%)
HSVhsv(277, 86%, 49%)
CMYKcmyk(32.5%, 85.7%, 0%, 50.6%)
CIE-LABlab(23.24, 47.48, -46.18)
CIE-LCHlch(23.24, 66.23, 315.79°)
OKLaboklab(36% 0.1014 -0.1314)
OKLCHoklch(36% 0.166 307.7)
XYZxyz(7.7277, 3.8704, 20.0746)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#55127E #3B7E12
analogous
#1F127E #55127E #7E1271
triadic
#55127E #7E5512 #127E55
tetradic
#55127E #7E1F12 #3B7E12 #12717E
square
#55127E #7E1F12 #3B7E12 #12717E
split-complementary
#55127E #717E12 #127E1F
monochromatic
#12041B #310A48 #55127E #791AB4 #9B2AE1

Accessibility & contrast

On white

11.84
#55127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#55127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #55127E
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##55127E#FFFFFF#000000##FFFFFF
##55127E1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#4E304A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #55127e;
/* rgb */ color: rgb(85, 18, 126);
/* oklch */ color: oklch(36.0% 0.166 307.7);
Tailwind
colors: {
  custom: {
    50: '#8a5aa4',
    500: '#55127e',
    950: '#000000',
  },
}
SCSS
$custom: #55127e;
$custom-light: #8a5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#55127e",
  "rgb": {
    "r": 85,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 277.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36003,
    "c": 0.166,
    "h": 307.7
  },
  "luminance": 0.0387
}

Semantic roles & 50–950 ramp

primary
#55127E
secondary
#67B438
accent
#F2367D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #55127E

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

Preview Lab → · Contrast checker → · Palette generator →

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