#7B4BB8#7B4BB8

#7B4BB8 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.1% C 0.167 H 301.1°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7B4BB8
RGBrgb(123, 75, 184)
HSLhsl(266, 43%, 51%)
HSVhsv(266, 59%, 72%)
CMYKcmyk(33.2%, 59.2%, 0%, 27.8%)
CIE-LABlab(42.31, 42.71, -50.36)
CIE-LCHlch(42.31, 66.03, 310.30°)
OKLaboklab(52.09% 0.0861 -0.1427)
OKLCHoklch(52.09% 0.167 301.1)
XYZxyz(19.3341, 12.7037, 46.7716)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4BB8 #88B84B
analogous
#4B51B8 #7B4BB8 #B14BB8
triadic
#7B4BB8 #B87B4B #4BB87B
tetradic
#7B4BB8 #B84B51 #88B84B #4BB8B1
square
#7B4BB8 #B84B51 #88B84B #4BB8B1
split-complementary
#7B4BB8 #B8B14B #51B84B
monochromatic
#412762 #5E388E #7B4BB8 #9B77C9 #BBA3DB

Accessibility & contrast

On white

5.93
#7B4BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7B4BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4BB8
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4BB8#FFFFFF#000000##FFFFFF
##7B4BB81.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1263BC
Deuteranopia (green-blind)
#2B63B6
Tritanopia (blue-blind)
#6F617A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b4bb8;
/* rgb */ color: rgb(123, 75, 184);
/* oklch */ color: oklch(52.1% 0.167 301.1);
Tailwind
colors: {
  custom: {
    50: '#a57fce',
    500: '#7b4bb8',
    950: '#000000',
  },
}
SCSS
$custom: #7b4bb8;
$custom-light: #a57fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4bb8",
  "rgb": {
    "r": 123,
    "g": 75,
    "b": 184
  },
  "hsl": {
    "h": 266.422,
    "s": 43.426,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52088,
    "c": 0.16664,
    "h": 301.1
  },
  "luminance": 0.12704
}

Semantic roles & 50–950 ramp

primary
#7B4BB8
secondary
#B2C897
accent
#D3559B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7B4BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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