#7B5CE6#7B5CE6

#7B5CE6 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.9% C 0.200 H 289.0°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7B5CE6
RGBrgb(123, 92, 230)
HSLhsl(253, 73%, 63%)
HSVhsv(253, 60%, 90%)
CMYKcmyk(46.5%, 60%, 0%, 9.8%)
CIE-LABlab(48.98, 45.63, -66.04)
CIE-LCHlch(48.98, 80.27, 304.64°)
OKLaboklab(57.94% 0.0649 -0.1888)
OKLCHoklch(57.94% 0.2 289)
XYZxyz(26.2744, 17.5774, 76.8559)
Luminance0.1758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5CE6 #C7E65C
analogous
#5C82E6 #7B5CE6 #C05CE6
triadic
#7B5CE6 #E67B5C #5CE67B
tetradic
#7B5CE6 #E65C82 #C7E65C #5CE6C0
square
#7B5CE6 #E65C82 #C7E65C #5CE6C0
split-complementary
#7B5CE6 #E6C05C #82E65C
monochromatic
#3B1BAD #5027DE #7B5CE6 #A691EE #D1C6F6

Accessibility & contrast

On white

4.65
#7B5CE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#7B5CE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5CE6
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5CE6#FFFFFF#000000##FFFFFF
##7B5CE61.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077EA
Deuteranopia (green-blind)
#0071E3
Tritanopia (blue-blind)
#597C98
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7b5ce6;
/* rgb */ color: rgb(123, 92, 230);
/* oklch */ color: oklch(57.9% 0.200 289.0);
Tailwind
colors: {
  custom: {
    50: '#a88bef',
    500: '#7b5ce6',
    950: '#000000',
  },
}
SCSS
$custom: #7b5ce6;
$custom-light: #a88bef;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5ce6",
  "rgb": {
    "r": 123,
    "g": 92,
    "b": 230
  },
  "hsl": {
    "h": 253.478,
    "s": 73.404,
    "l": 63.137
  },
  "oklch": {
    "l": 0.5794,
    "c": 0.1996,
    "h": 289
  },
  "luminance": 0.17578
}

Semantic roles & 50–950 ramp

primary
#7B5CE6
secondary
#DDE8B6
accent
#D610A9
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7B5CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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