#7B5BE5#7B5BE5

#7B5BE5 is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.7% C 0.200 H 289.3°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7B5BE5
RGBrgb(123, 91, 229)
HSLhsl(254, 73%, 63%)
HSVhsv(254, 60%, 90%)
CMYKcmyk(46.3%, 60.3%, 0%, 10.2%)
CIE-LABlab(48.70, 45.91, -65.93)
CIE-LCHlch(48.70, 80.34, 304.85°)
OKLaboklab(57.71% 0.066 -0.1885)
OKLCHoklch(57.71% 0.2 289.3)
XYZxyz(26.0483, 17.3493, 76.0898)
Luminance0.1735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5BE5 #C5E55B
analogous
#5B80E5 #7B5BE5 #C05BE5
triadic
#7B5BE5 #E57B5B #5BE57B
tetradic
#7B5BE5 #E55B80 #C5E55B #5BE5C0
square
#7B5BE5 #E55B80 #C5E55B #5BE5C0
split-complementary
#7B5BE5 #E5C05B #80E55B
monochromatic
#3C1BAB #5026DD #7B5BE5 #A690ED #D0C5F6

Accessibility & contrast

On white

4.70
#7B5BE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#7B5BE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5BE5
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5BE5#FFFFFF#000000##FFFFFF
##7B5BE51.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E9
Deuteranopia (green-blind)
#0070E2
Tritanopia (blue-blind)
#597B97
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7b5be5;
/* rgb */ color: rgb(123, 91, 229);
/* oklch */ color: oklch(57.7% 0.200 289.3);
Tailwind
colors: {
  custom: {
    50: '#a88bee',
    500: '#7b5be5',
    950: '#000000',
  },
}
SCSS
$custom: #7b5be5;
$custom-light: #a88bee;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5be5",
  "rgb": {
    "r": 123,
    "g": 91,
    "b": 229
  },
  "hsl": {
    "h": 253.913,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57712,
    "c": 0.19967,
    "h": 289.3
  },
  "luminance": 0.1735
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B5BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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