#7B5BEE#7B5BEE

#7B5BEE is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.4% C 0.211 H 288.1°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7B5BEE
RGBrgb(123, 91, 238)
HSLhsl(253, 81%, 65%)
HSVhsv(253, 62%, 93%)
CMYKcmyk(48.3%, 61.8%, 0%, 6.7%)
CIE-LABlab(49.33, 48.44, -69.97)
CIE-LCHlch(49.33, 85.10, 304.70°)
OKLaboklab(58.38% 0.0654 -0.2003)
OKLCHoklch(58.38% 0.211 288.1)
XYZxyz(27.3376, 17.8650, 82.8802)
Luminance0.1787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5BEE #CEEE5B
analogous
#5B85EE #7B5BEE #C45BEE
triadic
#7B5BEE #EE7B5B #5BEE7B
tetradic
#7B5BEE #EE5B85 #CEEE5B #5BEEC4
square
#7B5BEE #EE5B85 #CEEE5B #5BEEC4
split-complementary
#7B5BEE #EEC45B #85EE5B
monochromatic
#3813BB #4E24E8 #7B5BEE #A892F4 #D4CAF9

Accessibility & contrast

On white

4.59
#7B5BEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#7B5BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5BEE
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5BEE#FFFFFF#000000##FFFFFF
##7B5BEE1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079F3
Deuteranopia (green-blind)
#0071EB
Tritanopia (blue-blind)
#547E9C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7b5bee;
/* rgb */ color: rgb(123, 91, 238);
/* oklch */ color: oklch(58.4% 0.211 288.1);
Tailwind
colors: {
  custom: {
    50: '#a98bf4',
    500: '#7b5bee',
    950: '#000000',
  },
}
SCSS
$custom: #7b5bee;
$custom-light: #a98bf4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5bee",
  "rgb": {
    "r": 123,
    "g": 91,
    "b": 238
  },
  "hsl": {
    "h": 253.061,
    "s": 81.215,
    "l": 64.51
  },
  "oklch": {
    "l": 0.58375,
    "c": 0.21073,
    "h": 288.1
  },
  "luminance": 0.17866
}

Semantic roles & 50–950 ramp

primary
#7B5BEE
secondary
#E1ECB9
accent
#DE08AF
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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