#7B4BB2#7B4BB2

#7B4BB2 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.7% C 0.159 H 302.7°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#7B4BB2
RGBrgb(123, 75, 178)
HSLhsl(268, 41%, 50%)
HSVhsv(268, 58%, 70%)
CMYKcmyk(30.9%, 57.9%, 0%, 30.2%)
CIE-LABlab(41.93, 41.19, -47.45)
CIE-LCHlch(41.93, 62.83, 310.96°)
OKLaboklab(51.69% 0.0861 -0.1341)
OKLCHoklch(51.69% 0.159 302.7)
XYZxyz(18.7185, 12.4575, 43.5292)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4BB2 #82B24B
analogous
#4B4FB2 #7B4BB2 #AE4BB2
triadic
#7B4BB2 #B27B4B #4BB27B
tetradic
#7B4BB2 #B24B4F #82B24B #4BB2AE
square
#7B4BB2 #B24B4F #82B24B #4BB2AE
split-complementary
#7B4BB2 #B2AE4B #4FB24B
monochromatic
#3F275C #5D3987 #7B4BB2 #9A75C5 #BAA0D7

Accessibility & contrast

On white

6.01
#7B4BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7B4BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4BB2
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4BB2#FFFFFF#000000##FFFFFF
##7B4BB21.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E62B5
Deuteranopia (green-blind)
#3263B0
Tritanopia (blue-blind)
#715F77
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b4bb2;
/* rgb */ color: rgb(123, 75, 178);
/* oklch */ color: oklch(51.7% 0.159 302.7);
Tailwind
colors: {
  custom: {
    50: '#a47fca',
    500: '#7b4bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7b4bb2;
$custom-light: #a47fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4bb2",
  "rgb": {
    "r": 123,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 267.961,
    "s": 40.711,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51689,
    "c": 0.15938,
    "h": 302.7
  },
  "luminance": 0.12457
}

Semantic roles & 50–950 ramp

primary
#7B4BB2
secondary
#AEC495
accent
#D15798
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7B4BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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