#5C2289#5C2289

#5C2289 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.162 H 305.8°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#5C2289
RGBrgb(92, 34, 137)
HSLhsl(274, 60%, 34%)
HSVhsv(274, 75%, 54%)
CMYKcmyk(32.8%, 75.2%, 0%, 46.3%)
CIE-LABlab(27.37, 45.11, -46.33)
CIE-LCHlch(27.37, 64.66, 314.24°)
OKLaboklab(39.4% 0.0949 -0.1317)
OKLCHoklch(39.4% 0.162 305.8)
XYZxyz(9.5000, 5.2256, 24.1702)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2289 #4F8922
analogous
#282289 #5C2289 #892282
triadic
#5C2289 #895C22 #22895C
tetradic
#5C2289 #892822 #4F8922 #228289
square
#5C2289 #892822 #4F8922 #228289
split-complementary
#5C2289 #828922 #228928
monochromatic
#1A0A27 #3B1658 #5C2289 #7D2EBA #9B51D4

Accessibility & contrast

On white

10.27
#5C2289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5C2289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2289
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2289#FFFFFF#000000##FFFFFF
##5C22891.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#543B54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c2289;
/* rgb */ color: rgb(92, 34, 137);
/* oklch */ color: oklch(39.4% 0.162 305.8);
Tailwind
colors: {
  custom: {
    50: '#8f63ac',
    500: '#5c2289',
    950: '#000000',
  },
}
SCSS
$custom: #5c2289;
$custom-light: #8f63ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2289",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 137
  },
  "hsl": {
    "h": 273.786,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39404,
    "c": 0.16236,
    "h": 305.8
  },
  "luminance": 0.05226
}

Semantic roles & 50–950 ramp

primary
#5C2289
secondary
#7DB84F
accent
#E3448A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C2289

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

Preview Lab → · Contrast checker → · Palette generator →

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