#7C5BEC#7C5BEC

#7C5BEC is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.3% C 0.208 H 288.7°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7C5BEC
RGBrgb(124, 91, 236)
HSLhsl(254, 79%, 64%)
HSVhsv(254, 61%, 93%)
CMYKcmyk(47.5%, 61.4%, 0%, 7.5%)
CIE-LABlab(49.28, 48.07, -68.93)
CIE-LCHlch(49.28, 84.03, 304.89°)
OKLaboklab(58.31% 0.0668 -0.1972)
OKLCHoklch(58.31% 0.208 288.7)
XYZxyz(27.1892, 17.8223, 81.3480)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5BEC #CBEC5B
analogous
#5B83EC #7C5BEC #C55BEC
triadic
#7C5BEC #EC7C5B #5BEC7C
tetradic
#7C5BEC #EC5B83 #CBEC5B #5BECC5
square
#7C5BEC #EC5B83 #CBEC5B #5BECC5
split-complementary
#7C5BEC #ECC55B #83EC5B
monochromatic
#3A15B7 #5024E6 #7C5BEC #A892F2 #D4C9F9

Accessibility & contrast

On white

4.60
#7C5BEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7C5BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5BEC
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5BEC#FFFFFF#000000##FFFFFF
##7C5BEC1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#0071E9
Tritanopia (blue-blind)
#577D9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7c5bec;
/* rgb */ color: rgb(124, 91, 236);
/* oklch */ color: oklch(58.3% 0.208 288.7);
Tailwind
colors: {
  custom: {
    50: '#aa8bf3',
    500: '#7c5bec',
    950: '#000000',
  },
}
SCSS
$custom: #7c5bec;
$custom-light: #aa8bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5bec",
  "rgb": {
    "r": 124,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 253.655,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.58314,
    "c": 0.20824,
    "h": 288.7
  },
  "luminance": 0.17823
}

Semantic roles & 50–950 ramp

primary
#7C5BEC
secondary
#DFEBB8
accent
#DC0AAC
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5BEC

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

Preview Lab → · Contrast checker → · Palette generator →

#7C5BEC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva