#55157F#55157F

#55157F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.164 H 307.0°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#55157F
RGBrgb(85, 21, 127)
HSLhsl(276, 72%, 29%)
HSVhsv(276, 83%, 50%)
CMYKcmyk(33.1%, 83.5%, 0%, 50.2%)
CIE-LABlab(23.67, 46.70, -46.11)
CIE-LCHlch(23.67, 65.62, 315.36°)
OKLaboklab(36.33% 0.0989 -0.1312)
OKLCHoklch(36.33% 0.164 307)
XYZxyz(7.8444, 4.0000, 20.4334)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#55157F #3F7F15
analogous
#20157F #55157F #7F1574
triadic
#55157F #7F5515 #157F55
tetradic
#55157F #7F2015 #3F7F15 #15747F
square
#55157F #7F2015 #3F7F15 #15747F
split-complementary
#55157F #747F15 #157F20
monochromatic
#12041A #320C4A #55157F #781EB4 #9931DD

Accessibility & contrast

On white

11.67
#55157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#55157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #55157F
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##55157F#FFFFFF#000000##FFFFFF
##55157F1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#4E314B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #55157f;
/* rgb */ color: rgb(85, 21, 127);
/* oklch */ color: oklch(36.3% 0.164 307.0);
Tailwind
colors: {
  custom: {
    50: '#8a5ca5',
    500: '#55157f',
    950: '#000000',
  },
}
SCSS
$custom: #55157f;
$custom-light: #8a5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#55157f",
  "rgb": {
    "r": 85,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 276.226,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36331,
    "c": 0.1643,
    "h": 307
  },
  "luminance": 0.04
}

Semantic roles & 50–950 ramp

primary
#55157F
secondary
#6BB43C
accent
#EE3981
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #55157F

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

Preview Lab → · Contrast checker → · Palette generator →

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