#5C2F83#5C2F83

#5C2F83 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.138 H 305.8°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5C2F83
RGBrgb(92, 47, 131)
HSLhsl(272, 47%, 35%)
HSVhsv(272, 64%, 51%)
CMYKcmyk(29.8%, 64.1%, 0%, 48.6%)
CIE-LABlab(29.28, 37.09, -39.50)
CIE-LCHlch(29.28, 54.18, 313.20°)
OKLaboklab(40.63% 0.0806 -0.1117)
OKLCHoklch(40.63% 0.138 305.8)
XYZxyz(9.5260, 5.9471, 22.1144)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2F83 #56832F
analogous
#322F83 #5C2F83 #832F80
triadic
#5C2F83 #835C2F #2F835C
tetradic
#5C2F83 #83322F #56832F #2F8083
square
#5C2F83 #83322F #56832F #2F8083
split-complementary
#5C2F83 #80832F #2F8332
monochromatic
#1D0F29 #3C1F56 #5C2F83 #7C3FB0 #9A65C8

Accessibility & contrast

On white

9.59
#5C2F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5C2F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2F83
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2F83#FFFFFF#000000##FFFFFF
##5C2F831.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004486
Deuteranopia (green-blind)
#1D4581
Tritanopia (blue-blind)
#554054
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c2f83;
/* rgb */ color: rgb(92, 47, 131);
/* oklch */ color: oklch(40.6% 0.138 305.8);
Tailwind
colors: {
  custom: {
    50: '#8d6aa8',
    500: '#5c2f83',
    950: '#000000',
  },
}
SCSS
$custom: #5c2f83;
$custom-light: #8d6aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2f83",
  "rgb": {
    "r": 92,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 272.143,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40632,
    "c": 0.13775,
    "h": 305.8
  },
  "luminance": 0.05947
}

Semantic roles & 50–950 ramp

primary
#5C2F83
secondary
#84AF5F
accent
#D7518F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5C2F83

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

Preview Lab → · Contrast checker → · Palette generator →

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