#5C2EB7#5C2EB7

#5C2EB7 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.8% C 0.200 H 291.5°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#5C2EB7
RGBrgb(92, 46, 183)
HSLhsl(260, 60%, 45%)
HSVhsv(260, 75%, 72%)
CMYKcmyk(49.7%, 74.9%, 0%, 28.2%)
CIE-LABlab(33.24, 51.42, -64.67)
CIE-LCHlch(33.24, 82.62, 308.49°)
OKLaboklab(44.75% 0.0731 -0.1856)
OKLCHoklch(44.75% 0.2 291.5)
XYZxyz(13.9355, 7.6477, 45.5325)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2EB7 #89B72E
analogous
#2E45B7 #5C2EB7 #A02EB7
triadic
#5C2EB7 #B75C2E #2EB75C
tetradic
#5C2EB7 #B72E45 #89B72E #2EB7A0
square
#5C2EB7 #B72E45 #89B72E #2EB7A0
split-complementary
#5C2EB7 #B7A02E #45B72E
monochromatic
#2B1555 #432286 #5C2EB7 #7C4FD3 #A080DF

Accessibility & contrast

On white

8.30
#5C2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5C2EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2EB7
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2EB7#FFFFFF#000000##FFFFFF
##5C2EB71.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#004BB4
Tritanopia (blue-blind)
#3E5370
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5c2eb7;
/* rgb */ color: rgb(92, 46, 183);
/* oklch */ color: oklch(44.8% 0.200 291.5);
Tailwind
colors: {
  custom: {
    50: '#936cce',
    500: '#5c2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #5c2eb7;
$custom-light: #936cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2eb7",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 260.146,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44752,
    "c": 0.19953,
    "h": 291.5
  },
  "luminance": 0.07648
}

Semantic roles & 50–950 ramp

primary
#5C2EB7
secondary
#ADC879
accent
#E345AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5C2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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