#7B4CBE#7B4CBE

#7B4CBE is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.6% C 0.172 H 299.4°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#7B4CBE
RGBrgb(123, 76, 190)
HSLhsl(265, 47%, 52%)
HSVhsv(265, 60%, 75%)
CMYKcmyk(35.3%, 60%, 0%, 25.5%)
CIE-LABlab(42.91, 43.70, -52.91)
CIE-LCHlch(42.91, 68.62, 309.55°)
OKLaboklab(52.65% 0.0847 -0.1502)
OKLCHoklch(52.65% 0.172 299.4)
XYZxyz(20.0448, 13.0974, 50.1772)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4CBE #8FBE4C
analogous
#4C56BE #7B4CBE #B44CBE
triadic
#7B4CBE #BE7B4C #4CBE7B
tetradic
#7B4CBE #BE4C56 #8FBE4C #4CBEB4
square
#7B4CBE #BE4C56 #8FBE4C #4CBEB4
split-complementary
#7B4CBE #BEB44C #56BE4C
monochromatic
#422669 #5E3796 #7B4CBE #9C79CE #BDA6DF

Accessibility & contrast

On white

5.80
#7B4CBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#7B4CBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4CBE
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4CBE#FFFFFF#000000##FFFFFF
##7B4CBE1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0265C2
Deuteranopia (green-blind)
#2464BB
Tritanopia (blue-blind)
#6C647E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7b4cbe;
/* rgb */ color: rgb(123, 76, 190);
/* oklch */ color: oklch(52.6% 0.172 299.4);
Tailwind
colors: {
  custom: {
    50: '#a580d2',
    500: '#7b4cbe',
    950: '#000000',
  },
}
SCSS
$custom: #7b4cbe;
$custom-light: #a580d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4cbe",
  "rgb": {
    "r": 123,
    "g": 76,
    "b": 190
  },
  "hsl": {
    "h": 264.737,
    "s": 46.721,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52648,
    "c": 0.17242,
    "h": 299.4
  },
  "luminance": 0.13098
}

Semantic roles & 50–950 ramp

primary
#7B4CBE
secondary
#B7CC9A
accent
#D651A0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7B4CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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