#55127C#55127C

#55127C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.164 H 308.4°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#55127C
RGBrgb(85, 18, 124)
HSLhsl(278, 75%, 28%)
HSVhsv(278, 85%, 49%)
CMYKcmyk(31.5%, 85.5%, 0%, 51.4%)
CIE-LABlab(23.06, 47.02, -45.19)
CIE-LCHlch(23.06, 65.22, 316.14°)
OKLaboklab(35.83% 0.102 -0.1285)
OKLCHoklch(35.83% 0.164 308.4)
XYZxyz(7.5999, 3.8193, 19.4017)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#55127C #397C12
analogous
#20127C #55127C #7C126E
triadic
#55127C #7C5512 #127C55
tetradic
#55127C #7C2012 #397C12 #126E7C
square
#55127C #7C2012 #397C12 #126E7C
split-complementary
#55127C #6E7C12 #127C20
monochromatic
#12041B #300A47 #55127C #7A1AB1 #9C29E0

Accessibility & contrast

On white

11.91
#55127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #55127C
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##55127C#FFFFFF#000000##FFFFFF
##55127C1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#4F2F49
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #55127c;
/* rgb */ color: rgb(85, 18, 124);
/* oklch */ color: oklch(35.8% 0.164 308.4);
Tailwind
colors: {
  custom: {
    50: '#8a5aa3',
    500: '#55127c',
    950: '#000000',
  },
}
SCSS
$custom: #55127c;
$custom-light: #8a5aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#55127c",
  "rgb": {
    "r": 85,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 277.925,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35829,
    "c": 0.16409,
    "h": 308.4
  },
  "luminance": 0.03819
}

Semantic roles & 50–950 ramp

primary
#55127C
secondary
#65B238
accent
#F1377B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #55127C

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

Preview Lab → · Contrast checker → · Palette generator →

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