#5C2789#5C2789

#5C2789 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.156 H 305.0°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#5C2789
RGBrgb(92, 39, 137)
HSLhsl(272, 56%, 35%)
HSVhsv(272, 72%, 54%)
CMYKcmyk(32.8%, 71.5%, 0%, 46.3%)
CIE-LABlab(28.20, 42.76, -44.97)
CIE-LCHlch(28.20, 62.06, 313.56°)
OKLaboklab(40% 0.0896 -0.1278)
OKLCHoklch(40% 0.156 305)
XYZxyz(9.6535, 5.5325, 24.2214)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2789 #548927
analogous
#2B2789 #5C2789 #892785
triadic
#5C2789 #895C27 #27895C
tetradic
#5C2789 #892B27 #548927 #278589
square
#5C2789 #892B27 #548927 #278589
split-complementary
#5C2789 #858927 #27892B
monochromatic
#1C0C2A #3C1959 #5C2789 #7C35B9 #9A5AD0

Accessibility & contrast

On white

9.97
#5C2789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5C2789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2789
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2789#FFFFFF#000000##FFFFFF
##5C27891.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418C
Deuteranopia (green-blind)
#004387
Tritanopia (blue-blind)
#543E55
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5c2789;
/* rgb */ color: rgb(92, 39, 137);
/* oklch */ color: oklch(40.0% 0.156 305.0);
Tailwind
colors: {
  custom: {
    50: '#8e66ac',
    500: '#5c2789',
    950: '#000000',
  },
}
SCSS
$custom: #5c2789;
$custom-light: #8e66ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2789",
  "rgb": {
    "r": 92,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 272.449,
    "s": 55.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39995,
    "c": 0.15607,
    "h": 305
  },
  "luminance": 0.05532
}

Semantic roles & 50–950 ramp

primary
#5C2789
secondary
#82B557
accent
#DF498E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C2789

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

Preview Lab → · Contrast checker → · Palette generator →

#5C2789 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva