#5C2EBD#5C2EBD

#5C2EBD is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.206 H 290.3°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#5C2EBD
RGBrgb(92, 46, 189)
HSLhsl(259, 61%, 46%)
HSVhsv(259, 76%, 74%)
CMYKcmyk(51.3%, 75.7%, 0%, 25.9%)
CIE-LABlab(33.78, 53.05, -67.32)
CIE-LCHlch(33.78, 85.71, 308.24°)
OKLaboklab(45.3% 0.0716 -0.1934)
OKLCHoklch(45.3% 0.206 290.3)
XYZxyz(14.5733, 7.9028, 48.8918)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2EBD #8FBD2E
analogous
#2E47BD #5C2EBD #A32EBD
triadic
#5C2EBD #BD5C2E #2EBD5C
tetradic
#5C2EBD #BD2E47 #8FBD2E #2EBDA3
square
#5C2EBD #BD2E47 #8FBD2E #2EBDA3
split-complementary
#5C2EBD #BDA32E #47BD2E
monochromatic
#2C165B #44228C #5C2EBD #7D53D5 #A284E1

Accessibility & contrast

On white

8.14
#5C2EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5C2EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2EBD
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2EBD#FFFFFF#000000##FFFFFF
##5C2EBD1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#395674
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5c2ebd;
/* rgb */ color: rgb(92, 46, 189);
/* oklch */ color: oklch(45.3% 0.206 290.3);
Tailwind
colors: {
  custom: {
    50: '#946cd2',
    500: '#5c2ebd',
    950: '#000000',
  },
}
SCSS
$custom: #5c2ebd;
$custom-light: #946cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2ebd",
  "rgb": {
    "r": 92,
    "g": 46,
    "b": 189
  },
  "hsl": {
    "h": 259.301,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45297,
    "c": 0.20626,
    "h": 290.3
  },
  "luminance": 0.07903
}

Semantic roles & 50–950 ramp

primary
#5C2EBD
secondary
#B1CA7C
accent
#E444B0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5C2EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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