#5C2D95#5C2D95

#5C2D95 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.162 H 300.1°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5C2D95
RGBrgb(92, 45, 149)
HSLhsl(267, 54%, 38%)
HSVhsv(267, 70%, 58%)
CMYKcmyk(38.3%, 69.8%, 0%, 41.6%)
CIE-LABlab(30.21, 42.81, -49.13)
CIE-LCHlch(30.21, 65.16, 311.07°)
OKLaboklab(41.72% 0.0812 -0.14)
OKLCHoklch(41.72% 0.162 300.1)
XYZxyz(10.7755, 6.3219, 29.0805)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2D95 #66952D
analogous
#2D3295 #5C2D95 #902D95
triadic
#5C2D95 #955C2D #2D955C
tetradic
#5C2D95 #952D32 #66952D #2D9590
square
#5C2D95 #952D32 #66952D #2D9590
split-complementary
#5C2D95 #95902D #32952D
monochromatic
#221137 #3F1F66 #5C2D95 #793BC4 #996AD2

Accessibility & contrast

On white

9.27
#5C2D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5C2D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2D95
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2D95#FFFFFF#000000##FFFFFF
##5C2D951.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#4F465D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c2d95;
/* rgb */ color: rgb(92, 45, 149);
/* oklch */ color: oklch(41.7% 0.162 300.1);
Tailwind
colors: {
  custom: {
    50: '#8f6ab5',
    500: '#5c2d95',
    950: '#000000',
  },
}
SCSS
$custom: #5c2d95;
$custom-light: #8f6ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2d95",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 267.115,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41722,
    "c": 0.16183,
    "h": 300.1
  },
  "luminance": 0.06322
}

Semantic roles & 50–950 ramp

primary
#5C2D95
secondary
#93B965
accent
#DD4B9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C2D95

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

Preview Lab → · Contrast checker → · Palette generator →

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