#7C5BEB#7C5BEB

#7C5BEB is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.2% C 0.207 H 288.9°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7C5BEB
RGBrgb(124, 91, 235)
HSLhsl(254, 78%, 64%)
HSVhsv(254, 61%, 92%)
CMYKcmyk(47.2%, 61.3%, 0%, 7.8%)
CIE-LABlab(49.21, 47.79, -68.48)
CIE-LCHlch(49.21, 83.51, 304.91°)
OKLaboklab(58.24% 0.0669 -0.1959)
OKLCHoklch(58.24% 0.207 288.9)
XYZxyz(27.0444, 17.7643, 80.5850)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5BEB #CAEB5B
analogous
#5B82EB #7C5BEB #C45BEB
triadic
#7C5BEB #EB7C5B #5BEB7C
tetradic
#7C5BEB #EB5B82 #CAEB5B #5BEBC4
square
#7C5BEB #EB5B82 #CAEB5B #5BEBC4
split-complementary
#7C5BEB #EBC45B #82EB5B
monochromatic
#3B16B5 #5024E4 #7C5BEB #A892F2 #D3C8F8

Accessibility & contrast

On white

4.61
#7C5BEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#7C5BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5BEB
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5BEB#FFFFFF#000000##FFFFFF
##7C5BEB1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#0071E8
Tritanopia (blue-blind)
#587D9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7c5beb;
/* rgb */ color: rgb(124, 91, 235);
/* oklch */ color: oklch(58.2% 0.207 288.9);
Tailwind
colors: {
  custom: {
    50: '#aa8bf2',
    500: '#7c5beb',
    950: '#000000',
  },
}
SCSS
$custom: #7c5beb;
$custom-light: #aa8bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5beb",
  "rgb": {
    "r": 124,
    "g": 91,
    "b": 235
  },
  "hsl": {
    "h": 253.75,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.5824,
    "c": 0.20702,
    "h": 288.9
  },
  "luminance": 0.17765
}

Semantic roles & 50–950 ramp

primary
#7C5BEB
secondary
#DFEAB8
accent
#DB0BAB
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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