#55127B#55127B

#55127B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.163 H 308.8°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#55127B
RGBrgb(85, 18, 123)
HSLhsl(278, 74%, 28%)
HSVhsv(278, 85%, 48%)
CMYKcmyk(30.9%, 85.4%, 0%, 51.8%)
CIE-LABlab(22.98, 46.80, -44.70)
CIE-LCHlch(22.98, 64.71, 316.32°)
OKLaboklab(35.74% 0.1023 -0.1271)
OKLCHoklch(35.74% 0.163 308.8)
XYZxyz(7.5370, 3.7941, 19.0703)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#55127B #387B12
analogous
#21127B #55127B #7B126C
triadic
#55127B #7B5512 #127B55
tetradic
#55127B #7B2112 #387B12 #126C7B
square
#55127B #7B2112 #387B12 #126C7B
split-complementary
#55127B #6C7B12 #127B21
monochromatic
#12041B #300A46 #55127B #7A1AB0 #9D28E0

Accessibility & contrast

On white

11.94
#55127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#55127B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #55127B
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##55127B#FFFFFF#000000##FFFFFF
##55127B1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#4F2E48
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #55127b;
/* rgb */ color: rgb(85, 18, 123);
/* oklch */ color: oklch(35.7% 0.163 308.8);
Tailwind
colors: {
  custom: {
    50: '#8a5aa2',
    500: '#55127b',
    950: '#000000',
  },
}
SCSS
$custom: #55127b;
$custom-light: #8a5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#55127b",
  "rgb": {
    "r": 85,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 278.286,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35742,
    "c": 0.16313,
    "h": 308.8
  },
  "luminance": 0.03794
}

Semantic roles & 50–950 ramp

primary
#55127B
secondary
#64B138
accent
#F1377A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #55127B

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

Preview Lab → · Contrast checker → · Palette generator →

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