#5C2D93#5C2D93

#5C2D93 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.160 H 300.7°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#5C2D93
RGBrgb(92, 45, 147)
HSLhsl(268, 53%, 38%)
HSVhsv(268, 69%, 58%)
CMYKcmyk(37.4%, 69.4%, 0%, 42.4%)
CIE-LABlab(30.06, 42.29, -48.15)
CIE-LCHlch(30.06, 64.08, 311.29°)
OKLaboklab(41.56% 0.0815 -0.1371)
OKLCHoklch(41.56% 0.16 300.7)
XYZxyz(10.6172, 6.2586, 28.2468)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2D93 #64932D
analogous
#2D3193 #5C2D93 #8F2D93
triadic
#5C2D93 #935C2D #2D935C
tetradic
#5C2D93 #932D31 #64932D #2D938F
square
#5C2D93 #932D31 #64932D #2D938F
split-complementary
#5C2D93 #938F2D #31932D
monochromatic
#211035 #3F1F64 #5C2D93 #793BC2 #9969D1

Accessibility & contrast

On white

9.33
#5C2D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5C2D93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2D93
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2D93#FFFFFF#000000##FFFFFF
##5C2D931.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004696
Deuteranopia (green-blind)
#004691
Tritanopia (blue-blind)
#50455C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c2d93;
/* rgb */ color: rgb(92, 45, 147);
/* oklch */ color: oklch(41.6% 0.160 300.7);
Tailwind
colors: {
  custom: {
    50: '#8f69b3',
    500: '#5c2d93',
    950: '#000000',
  },
}
SCSS
$custom: #5c2d93;
$custom-light: #8f69b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2d93",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 147
  },
  "hsl": {
    "h": 267.647,
    "s": 53.125,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41562,
    "c": 0.15951,
    "h": 300.7
  },
  "luminance": 0.06259
}

Semantic roles & 50–950 ramp

primary
#5C2D93
secondary
#91B864
accent
#DD4B9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C2D93

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

Preview Lab → · Contrast checker → · Palette generator →

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