#7B5CE3#7B5CE3

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

Color values

HEX#7B5CE3
RGBrgb(123, 92, 227)
HSLhsl(254, 71%, 63%)
HSVhsv(254, 59%, 89%)
CMYKcmyk(45.8%, 59.5%, 0%, 11%)
CIE-LABlab(48.77, 44.78, -64.68)
CIE-LCHlch(48.77, 78.67, 304.70°)
OKLaboklab(57.72% 0.065 -0.1848)
OKLCHoklch(57.72% 0.196 289.4)
XYZxyz(25.8567, 17.4103, 74.6563)
Luminance0.1741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5CE3 #C4E35C
analogous
#5C80E3 #7B5CE3 #BF5CE3
triadic
#7B5CE3 #E37B5C #5CE37B
tetradic
#7B5CE3 #E35C80 #C4E35C #5CE3BF
square
#7B5CE3 #E35C80 #C4E35C #5CE3BF
split-complementary
#7B5CE3 #E3BF5C #80E35C
monochromatic
#3D1DA8 #5128DA #7B5CE3 #A590EC #D0C4F5

Accessibility & contrast

On white

4.69
#7B5CE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#7B5CE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5CE3
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5CE3#FFFFFF#000000##FFFFFF
##7B5CE31.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E7
Deuteranopia (green-blind)
#0071E0
Tritanopia (blue-blind)
#5A7B97
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7b5ce3;
/* rgb */ color: rgb(123, 92, 227);
/* oklch */ color: oklch(57.7% 0.196 289.4);
Tailwind
colors: {
  custom: {
    50: '#a88bed',
    500: '#7b5ce3',
    950: '#000000',
  },
}
SCSS
$custom: #7b5ce3;
$custom-light: #a88bed;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5ce3",
  "rgb": {
    "r": 123,
    "g": 92,
    "b": 227
  },
  "hsl": {
    "h": 253.778,
    "s": 70.681,
    "l": 62.549
  },
  "oklch": {
    "l": 0.57724,
    "c": 0.19587,
    "h": 289.4
  },
  "luminance": 0.17411
}

Semantic roles & 50–950 ramp

primary
#7B5CE3
secondary
#DBE6B5
accent
#D313A7
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7B5CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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