#7B5CC2#7B5CC2

#7B5CC2 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.5% C 0.154 H 294.9°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#7B5CC2
RGBrgb(123, 92, 194)
HSLhsl(258, 46%, 56%)
HSVhsv(258, 53%, 76%)
CMYKcmyk(36.6%, 52.6%, 0%, 23.9%)
CIE-LABlab(46.66, 35.66, -49.22)
CIE-LCHlch(46.66, 60.78, 305.92°)
OKLaboklab(55.49% 0.0647 -0.1393)
OKLCHoklch(55.49% 0.154 294.9)
XYZxyz(21.7306, 15.7599, 52.9255)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5CC2 #A3C25C
analogous
#5C70C2 #7B5CC2 #AE5CC2
triadic
#7B5CC2 #C27B5C #5CC27B
tetradic
#7B5CC2 #C25C70 #A3C25C #5CC2AE
square
#7B5CC2 #C25C70 #A3C25C #5CC2AE
split-complementary
#7B5CC2 #C2AE5C #70C25C
monochromatic
#432D77 #5C3DA4 #7B5CC2 #9F89D3 #C3B5E3

Accessibility & contrast

On white

5.06
#7B5CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#7B5CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5CC2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5CC2#FFFFFF#000000##FFFFFF
##7B5CC21.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326FC6
Deuteranopia (green-blind)
#3A6DC0
Tritanopia (blue-blind)
#6A7186
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7b5cc2;
/* rgb */ color: rgb(123, 92, 194);
/* oklch */ color: oklch(55.5% 0.154 294.9);
Tailwind
colors: {
  custom: {
    50: '#a58bd5',
    500: '#7b5cc2',
    950: '#000000',
  },
}
SCSS
$custom: #7b5cc2;
$custom-light: #a58bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5cc2",
  "rgb": {
    "r": 123,
    "g": 92,
    "b": 194
  },
  "hsl": {
    "h": 258.235,
    "s": 45.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.55488,
    "c": 0.15365,
    "h": 294.9
  },
  "luminance": 0.1576
}

Semantic roles & 50–950 ramp

primary
#7B5CC2
secondary
#C5D2A8
accent
#D553AE
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7B5CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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