#7B5BE8#7B5BE8

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

Color values

HEX#7B5BE8
RGBrgb(123, 91, 232)
HSLhsl(254, 75%, 63%)
HSVhsv(254, 61%, 91%)
CMYKcmyk(47%, 60.8%, 0%, 9%)
CIE-LABlab(48.91, 46.75, -67.29)
CIE-LCHlch(48.91, 81.94, 304.79°)
OKLaboklab(57.93% 0.0658 -0.1924)
OKLCHoklch(57.93% 0.203 288.9)
XYZxyz(26.4708, 17.5182, 78.3149)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5BE8 #C8E85B
analogous
#5B81E8 #7B5BE8 #C15BE8
triadic
#7B5BE8 #E87B5B #5BE87B
tetradic
#7B5BE8 #E85B81 #C8E85B #5BE8C1
square
#7B5BE8 #E85B81 #C8E85B #5BE8C1
split-complementary
#7B5BE8 #E8C15B #81E85B
monochromatic
#3B19B0 #5025E0 #7B5BE8 #A691F0 #D1C6F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B5BE8#FFFFFF#000000##FFFFFF
##7B5BE81.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)
#0077ED
Deuteranopia (green-blind)
#0071E5
Tritanopia (blue-blind)
#577C99
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7b5be8;
/* rgb */ color: rgb(123, 91, 232);
/* oklch */ color: oklch(57.9% 0.203 288.9);
Tailwind
colors: {
  custom: {
    50: '#a98bf0',
    500: '#7b5be8',
    950: '#000000',
  },
}
SCSS
$custom: #7b5be8;
$custom-light: #a98bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5be8",
  "rgb": {
    "r": 123,
    "g": 91,
    "b": 232
  },
  "hsl": {
    "h": 253.617,
    "s": 75.401,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57931,
    "c": 0.20338,
    "h": 288.9
  },
  "luminance": 0.17519
}

Semantic roles & 50–950 ramp

primary
#7B5BE8
secondary
#DDE9B6
accent
#D80EAA
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5BE8

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

Preview Lab → · Contrast checker → · Palette generator →

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