#55127D#55127D

#55127D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.165 H 308.1°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#55127D
RGBrgb(85, 18, 125)
HSLhsl(278, 75%, 28%)
HSVhsv(278, 86%, 49%)
CMYKcmyk(32%, 85.6%, 0%, 51%)
CIE-LABlab(23.15, 47.25, -45.69)
CIE-LCHlch(23.15, 65.73, 315.96°)
OKLaboklab(35.92% 0.1017 -0.13)
OKLCHoklch(35.92% 0.165 308.1)
XYZxyz(7.6635, 3.8447, 19.7364)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#55127D #3A7D12
analogous
#1F127D #55127D #7D126F
triadic
#55127D #7D5512 #127D55
tetradic
#55127D #7D1F12 #3A7D12 #126F7D
square
#55127D #7D1F12 #3A7D12 #126F7D
split-complementary
#55127D #6F7D12 #127D1F
monochromatic
#12041B #310A48 #55127D #791AB2 #9C29E0

Accessibility & contrast

On white

11.87
#55127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #55127D
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##55127D#FFFFFF#000000##FFFFFF
##55127D1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#4E2F49
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #55127d;
/* rgb */ color: rgb(85, 18, 125);
/* oklch */ color: oklch(35.9% 0.165 308.1);
Tailwind
colors: {
  custom: {
    50: '#8a5aa3',
    500: '#55127d',
    950: '#000000',
  },
}
SCSS
$custom: #55127d;
$custom-light: #8a5aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#55127d",
  "rgb": {
    "r": 85,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 277.57,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35916,
    "c": 0.16505,
    "h": 308.1
  },
  "luminance": 0.03845
}

Semantic roles & 50–950 ramp

primary
#55127D
secondary
#66B338
accent
#F1367C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #55127D

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

Preview Lab → · Contrast checker → · Palette generator →

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