#7B5FC6#7B5FC6

#7B5FC6 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.3% C 0.154 H 293.3°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7B5FC6
RGBrgb(123, 95, 198)
HSLhsl(256, 47%, 57%)
HSVhsv(256, 52%, 78%)
CMYKcmyk(37.9%, 52%, 0%, 22.4%)
CIE-LABlab(47.59, 34.99, -50.04)
CIE-LCHlch(47.59, 61.06, 304.96°)
OKLaboklab(56.26% 0.0612 -0.1417)
OKLCHoklch(56.26% 0.154 293.3)
XYZxyz(22.4509, 16.4721, 55.4117)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5FC6 #AAC65F
analogous
#5F76C6 #7B5FC6 #AF5FC6
triadic
#7B5FC6 #C67B5F #5FC67B
tetradic
#7B5FC6 #C65F76 #AAC65F #5FC6AF
square
#7B5FC6 #C65F76 #AAC65F #5FC6AF
split-complementary
#7B5FC6 #C6AF5F #76C65F
monochromatic
#432D7E #5B3DAB #7B5FC6 #A08CD6 #C5B9E6

Accessibility & contrast

On white

4.89
#7B5FC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7B5FC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5FC6
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5FC6#FFFFFF#000000##FFFFFF
##7B5FC61.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3472CA
Deuteranopia (green-blind)
#3A6FC4
Tritanopia (blue-blind)
#687489
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7b5fc6;
/* rgb */ color: rgb(123, 95, 198);
/* oklch */ color: oklch(56.3% 0.154 293.3);
Tailwind
colors: {
  custom: {
    50: '#a58dd8',
    500: '#7b5fc6',
    950: '#000000',
  },
}
SCSS
$custom: #7b5fc6;
$custom-light: #a58dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5fc6",
  "rgb": {
    "r": 123,
    "g": 95,
    "b": 198
  },
  "hsl": {
    "h": 256.311,
    "s": 47.465,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56256,
    "c": 0.15438,
    "h": 293.3
  },
  "luminance": 0.16473
}

Semantic roles & 50–950 ramp

primary
#7B5FC6
secondary
#CAD5AC
accent
#D751B3
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7B5FC6

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

Preview Lab → · Contrast checker → · Palette generator →

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