#55127F#55127F

#55127F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.167 H 307.3°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#55127F
RGBrgb(85, 18, 127)
HSLhsl(277, 75%, 28%)
HSVhsv(277, 86%, 50%)
CMYKcmyk(33.1%, 85.8%, 0%, 50.2%)
CIE-LABlab(23.33, 47.71, -46.67)
CIE-LCHlch(23.33, 66.74, 315.63°)
OKLaboklab(36.09% 0.1011 -0.1329)
OKLCHoklch(36.09% 0.167 307.3)
XYZxyz(7.7926, 3.8963, 20.4161)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#55127F #3C7F12
analogous
#1F127F #55127F #7F1272
triadic
#55127F #7F5512 #127F55
tetradic
#55127F #7F1F12 #3C7F12 #12727F
square
#55127F #7F1F12 #3C7F12 #12727F
split-complementary
#55127F #727F12 #127F1F
monochromatic
#12041B #310A49 #55127F #791AB5 #9B2BE1

Accessibility & contrast

On white

11.80
#55127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#55127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #55127F
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##55127F#FFFFFF#000000##FFFFFF
##55127F1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#4E304A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #55127f;
/* rgb */ color: rgb(85, 18, 127);
/* oklch */ color: oklch(36.1% 0.167 307.3);
Tailwind
colors: {
  custom: {
    50: '#8a5ba5',
    500: '#55127f',
    950: '#000000',
  },
}
SCSS
$custom: #55127f;
$custom-light: #8a5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#55127f",
  "rgb": {
    "r": 85,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 276.881,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36091,
    "c": 0.16696,
    "h": 307.3
  },
  "luminance": 0.03896
}

Semantic roles & 50–950 ramp

primary
#55127F
secondary
#68B538
accent
#F2367E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #55127F

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

Preview Lab → · Contrast checker → · Palette generator →

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