#5C2D90#5C2D90

#5C2D90 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.156 H 301.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5C2D90
RGBrgb(92, 45, 144)
HSLhsl(268, 52%, 37%)
HSVhsv(268, 69%, 56%)
CMYKcmyk(36.1%, 68.7%, 0%, 43.5%)
CIE-LABlab(29.83, 41.50, -46.67)
CIE-LCHlch(29.83, 62.46, 311.64°)
OKLaboklab(41.33% 0.0819 -0.1328)
OKLCHoklch(41.33% 0.156 301.7)
XYZxyz(10.3849, 6.1657, 27.0231)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2D90 #61902D
analogous
#2D2F90 #5C2D90 #8E2D90
triadic
#5C2D90 #905C2D #2D905C
tetradic
#5C2D90 #902D2F #61902D #2D908E
square
#5C2D90 #902D2F #61902D #2D908E
split-complementary
#5C2D90 #908E2D #2F902D
monochromatic
#201033 #3E1E61 #5C2D90 #7A3CBF #9968D0

Accessibility & contrast

On white

9.40
#5C2D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5C2D90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2D90
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2D90#FFFFFF#000000##FFFFFF
##5C2D901.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004693
Deuteranopia (green-blind)
#00468E
Tritanopia (blue-blind)
#51445A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c2d90;
/* rgb */ color: rgb(92, 45, 144);
/* oklch */ color: oklch(41.3% 0.156 301.7);
Tailwind
colors: {
  custom: {
    50: '#8f69b1',
    500: '#5c2d90',
    950: '#000000',
  },
}
SCSS
$custom: #5c2d90;
$custom-light: #8f69b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2d90",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 144
  },
  "hsl": {
    "h": 268.485,
    "s": 52.381,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41326,
    "c": 0.15601,
    "h": 301.7
  },
  "luminance": 0.06166
}

Semantic roles & 50–950 ramp

primary
#5C2D90
secondary
#8FB662
accent
#DC4C98
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2D90

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

Preview Lab → · Contrast checker → · Palette generator →

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