#7B5AEB#7B5AEB

#7B5AEB is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.0% C 0.208 H 288.7°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#7B5AEB
RGBrgb(123, 90, 235)
HSLhsl(254, 78%, 64%)
HSVhsv(254, 62%, 92%)
CMYKcmyk(47.7%, 61.7%, 0%, 7.8%)
CIE-LABlab(48.91, 48.15, -68.97)
CIE-LCHlch(48.91, 84.12, 304.92°)
OKLaboklab(58% 0.0666 -0.1974)
OKLCHoklch(58% 0.208 288.7)
XYZxyz(26.8156, 17.5203, 80.5500)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5AEB #CAEB5A
analogous
#5A81EB #7B5AEB #C35AEB
triadic
#7B5AEB #EB7B5A #5AEB7B
tetradic
#7B5AEB #EB5A81 #CAEB5A #5AEBC3
square
#7B5AEB #EB5A81 #CAEB5A #5AEBC3
split-complementary
#7B5AEB #EBC35A #81EB5A
monochromatic
#3A16B5 #4F23E4 #7B5AEB #A791F2 #D2C7F8

Accessibility & contrast

On white

4.66
#7B5AEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#7B5AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5AEB
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5AEB#FFFFFF#000000##FFFFFF
##7B5AEB1.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F0
Deuteranopia (green-blind)
#0071E8
Tritanopia (blue-blind)
#567C9A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7b5aeb;
/* rgb */ color: rgb(123, 90, 235);
/* oklch */ color: oklch(58.0% 0.208 288.7);
Tailwind
colors: {
  custom: {
    50: '#a98af2',
    500: '#7b5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #7b5aeb;
$custom-light: #a98af2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5aeb",
  "rgb": {
    "r": 123,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 253.655,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.58,
    "c": 0.20833,
    "h": 288.7
  },
  "luminance": 0.17521
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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