#5C2E97#5C2E97

#5C2E97 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.163 H 299.3°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#5C2E97
RGBrgb(92, 46, 151)
HSLhsl(266, 53%, 39%)
HSVhsv(266, 70%, 59%)
CMYKcmyk(39.1%, 69.5%, 0%, 40.8%)
CIE-LABlab(30.55, 42.82, -49.79)
CIE-LCHlch(30.55, 65.67, 310.69°)
OKLaboklab(42.02% 0.0798 -0.142)
OKLCHoklch(42.02% 0.163 299.3)
XYZxyz(10.9751, 6.4635, 29.9415)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2E97 #69972E
analogous
#2E3497 #5C2E97 #902E97
triadic
#5C2E97 #975C2E #2E975C
tetradic
#5C2E97 #972E34 #69972E #2E9790
square
#5C2E97 #972E34 #69972E #2E9790
split-complementary
#5C2E97 #97902E #34972E
monochromatic
#231139 #3F2068 #5C2E97 #793EC4 #996DD2

Accessibility & contrast

On white

9.16
#5C2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5C2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2E97
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2E97#FFFFFF#000000##FFFFFF
##5C2E971.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#4E475F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5c2e97;
/* rgb */ color: rgb(92, 46, 151);
/* oklch */ color: oklch(42.0% 0.163 299.3);
Tailwind
colors: {
  custom: {
    50: '#8f6ab6',
    500: '#5c2e97',
    950: '#000000',
  },
}
SCSS
$custom: #5c2e97;
$custom-light: #8f6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2e97",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 266.286,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42016,
    "c": 0.16285,
    "h": 299.3
  },
  "luminance": 0.06464
}

Semantic roles & 50–950 ramp

primary
#5C2E97
secondary
#96BA67
accent
#DD4B9D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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