#5C2E95#5C2E95

#5C2E95 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.161 H 299.9°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5C2E95
RGBrgb(92, 46, 149)
HSLhsl(267, 53%, 38%)
HSVhsv(267, 69%, 58%)
CMYKcmyk(38.3%, 69.1%, 0%, 41.6%)
CIE-LABlab(30.40, 42.29, -48.82)
CIE-LCHlch(30.40, 64.59, 310.90°)
OKLaboklab(41.86% 0.0801 -0.1391)
OKLCHoklch(41.86% 0.161 299.9)
XYZxyz(10.8141, 6.3991, 29.0934)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2E95 #67952E
analogous
#2E3395 #5C2E95 #8F2E95
triadic
#5C2E95 #955C2E #2E955C
tetradic
#5C2E95 #952E33 #67952E #2E958F
square
#5C2E95 #952E33 #67952E #2E958F
split-complementary
#5C2E95 #958F2E #33952E
monochromatic
#221137 #3F2066 #5C2E95 #793DC3 #996CD2

Accessibility & contrast

On white

9.21
#5C2E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5C2E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2E95
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2E95#FFFFFF#000000##FFFFFF
##5C2E951.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#4F465E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5c2e95;
/* rgb */ color: rgb(92, 46, 149);
/* oklch */ color: oklch(41.9% 0.161 299.9);
Tailwind
colors: {
  custom: {
    50: '#8f6ab5',
    500: '#5c2e95',
    950: '#000000',
  },
}
SCSS
$custom: #5c2e95;
$custom-light: #8f6ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2e95",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 266.796,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41856,
    "c": 0.16051,
    "h": 299.9
  },
  "luminance": 0.06399
}

Semantic roles & 50–950 ramp

primary
#5C2E95
secondary
#94B966
accent
#DC4C9C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5C2E95

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

Preview Lab → · Contrast checker → · Palette generator →

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