#7B5BE3#7B5BE3

#7B5BE3 is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.6% C 0.197 H 289.6°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7B5BE3
RGBrgb(123, 91, 227)
HSLhsl(254, 71%, 62%)
HSVhsv(254, 60%, 89%)
CMYKcmyk(45.8%, 59.9%, 0%, 11%)
CIE-LABlab(48.56, 45.35, -65.03)
CIE-LCHlch(48.56, 79.28, 304.89°)
OKLaboklab(57.57% 0.0661 -0.1858)
OKLCHoklch(57.57% 0.197 289.6)
XYZxyz(25.7707, 17.2382, 74.6276)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5BE3 #C3E35B
analogous
#5B7FE3 #7B5BE3 #BF5BE3
triadic
#7B5BE3 #E37B5B #5BE37B
tetradic
#7B5BE3 #E35B7F #C3E35B #5BE3BF
square
#7B5BE3 #E35B7F #C3E35B #5BE3BF
split-complementary
#7B5BE3 #E3BF5B #7FE35B
monochromatic
#3D1DA7 #5127DA #7B5BE3 #A58FEC #CFC4F5

Accessibility & contrast

On white

4.72
#7B5BE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#7B5BE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5BE3
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5BE3#FFFFFF#000000##FFFFFF
##7B5BE31.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E7
Deuteranopia (green-blind)
#0070E0
Tritanopia (blue-blind)
#5A7A96
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7b5be3;
/* rgb */ color: rgb(123, 91, 227);
/* oklch */ color: oklch(57.6% 0.197 289.6);
Tailwind
colors: {
  custom: {
    50: '#a88bed',
    500: '#7b5be3',
    950: '#000000',
  },
}
SCSS
$custom: #7b5be3;
$custom-light: #a88bed;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5be3",
  "rgb": {
    "r": 123,
    "g": 91,
    "b": 227
  },
  "hsl": {
    "h": 254.118,
    "s": 70.833,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57567,
    "c": 0.19719,
    "h": 289.6
  },
  "luminance": 0.17239
}

Semantic roles & 50–950 ramp

primary
#7B5BE3
secondary
#DAE6B4
accent
#D313A6
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7B5BE3

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

Preview Lab → · Contrast checker → · Palette generator →

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