#7B5CE2#7B5CE2

#7B5CE2 is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.7% C 0.195 H 289.5°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7B5CE2
RGBrgb(123, 92, 226)
HSLhsl(254, 70%, 62%)
HSVhsv(254, 59%, 89%)
CMYKcmyk(45.6%, 59.3%, 0%, 11.4%)
CIE-LABlab(48.70, 44.50, -64.23)
CIE-LCHlch(48.70, 78.14, 304.72°)
OKLaboklab(57.65% 0.065 -0.1834)
OKLCHoklch(57.65% 0.195 289.5)
XYZxyz(25.7191, 17.3553, 73.9315)
Luminance0.1736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5CE2 #C3E25C
analogous
#5C80E2 #7B5CE2 #BE5CE2
triadic
#7B5CE2 #E27B5C #5CE27B
tetradic
#7B5CE2 #E25C80 #C3E25C #5CE2BE
square
#7B5CE2 #E25C80 #C3E25C #5CE2BE
split-complementary
#7B5CE2 #E2BE5C #80E25C
monochromatic
#3D1EA6 #5128D9 #7B5CE2 #A590EB #CFC4F4

Accessibility & contrast

On white

4.70
#7B5CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#7B5CE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5CE2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5CE2#FFFFFF#000000##FFFFFF
##7B5CE21.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E6
Deuteranopia (green-blind)
#0070DF
Tritanopia (blue-blind)
#5B7B96
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7b5ce2;
/* rgb */ color: rgb(123, 92, 226);
/* oklch */ color: oklch(57.7% 0.195 289.5);
Tailwind
colors: {
  custom: {
    50: '#a88bec',
    500: '#7b5ce2',
    950: '#000000',
  },
}
SCSS
$custom: #7b5ce2;
$custom-light: #a88bec;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5ce2",
  "rgb": {
    "r": 123,
    "g": 92,
    "b": 226
  },
  "hsl": {
    "h": 253.881,
    "s": 69.792,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57652,
    "c": 0.19462,
    "h": 289.5
  },
  "luminance": 0.17356
}

Semantic roles & 50–950 ramp

primary
#7B5CE2
secondary
#DAE5B4
accent
#D214A6
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7B5CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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