#7B5CE4#7B5CE4

#7B5CE4 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.8% C 0.197 H 289.2°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7B5CE4
RGBrgb(123, 92, 228)
HSLhsl(254, 72%, 63%)
HSVhsv(254, 60%, 89%)
CMYKcmyk(46.1%, 59.6%, 0%, 10.6%)
CIE-LABlab(48.84, 45.07, -65.14)
CIE-LCHlch(48.84, 79.21, 304.68°)
OKLaboklab(57.8% 0.0649 -0.1861)
OKLCHoklch(57.8% 0.197 289.2)
XYZxyz(25.9951, 17.4657, 75.3853)
Luminance0.1747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5CE4 #C5E45C
analogous
#5C81E4 #7B5CE4 #BF5CE4
triadic
#7B5CE4 #E47B5C #5CE47B
tetradic
#7B5CE4 #E45C81 #C5E45C #5CE4BF
square
#7B5CE4 #E45C81 #C5E45C #5CE4BF
split-complementary
#7B5CE4 #E4BF5C #81E45C
monochromatic
#3C1CAA #5027DB #7B5CE4 #A691ED #D0C5F5

Accessibility & contrast

On white

4.67
#7B5CE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#7B5CE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5CE4
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5CE4#FFFFFF#000000##FFFFFF
##7B5CE41.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b5ce4;
/* rgb */ color: rgb(123, 92, 228);
/* oklch */ color: oklch(57.8% 0.197 289.2);
Tailwind
colors: {
  custom: {
    50: '#a88bed',
    500: '#7b5ce4',
    950: '#000000',
  },
}
SCSS
$custom: #7b5ce4;
$custom-light: #a88bed;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5ce4",
  "rgb": {
    "r": 123,
    "g": 92,
    "b": 228
  },
  "hsl": {
    "h": 253.676,
    "s": 71.579,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57796,
    "c": 0.19711,
    "h": 289.2
  },
  "luminance": 0.17467
}

Semantic roles & 50–950 ramp

primary
#7B5CE4
secondary
#DBE7B5
accent
#D412A7
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7B5CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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