#5C2EA2#5C2EA2

#5C2EA2 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.176 H 296.3°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5C2EA2
RGBrgb(92, 46, 162)
HSLhsl(264, 56%, 41%)
HSVhsv(264, 72%, 64%)
CMYKcmyk(43.2%, 71.6%, 0%, 36.5%)
CIE-LABlab(31.43, 45.75, -55.05)
CIE-LCHlch(31.43, 71.58, 309.73°)
OKLaboklab(42.92% 0.0779 -0.1574)
OKLCHoklch(42.92% 0.176 296.3)
XYZxyz(11.9105, 6.8377, 34.8677)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2EA2 #74A22E
analogous
#2E3AA2 #5C2EA2 #962EA2
triadic
#5C2EA2 #A25C2E #2EA25C
tetradic
#5C2EA2 #A22E3A #74A22E #2EA296
square
#5C2EA2 #A22E3A #74A22E #2EA296
split-complementary
#5C2EA2 #A2962E #3AA22E
monochromatic
#261343 #412072 #5C2EA2 #7943CA #9B73D7

Accessibility & contrast

On white

8.87
#5C2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5C2EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2EA2
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2EA2#FFFFFF#000000##FFFFFF
##5C2EA21.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#4A4B65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2ea2;
/* rgb */ color: rgb(92, 46, 162);
/* oklch */ color: oklch(42.9% 0.176 296.3);
Tailwind
colors: {
  custom: {
    50: '#906bbe',
    500: '#5c2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ea2;
$custom-light: #906bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ea2",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 263.793,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4292,
    "c": 0.17563,
    "h": 296.3
  },
  "luminance": 0.06838
}

Semantic roles & 50–950 ramp

primary
#5C2EA2
secondary
#9EBF6D
accent
#DF49A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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