#7B4CA7#7B4CA7

#7B4CA7 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.1% C 0.144 H 305.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7B4CA7
RGBrgb(123, 76, 167)
HSLhsl(271, 37%, 48%)
HSVhsv(271, 54%, 65%)
CMYKcmyk(26.3%, 54.5%, 0%, 34.5%)
CIE-LABlab(41.48, 37.89, -41.66)
CIE-LCHlch(41.48, 56.31, 312.29°)
OKLaboklab(51.15% 0.0844 -0.1172)
OKLCHoklch(51.15% 0.144 305.8)
XYZxyz(17.7264, 12.1700, 37.9669)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4CA7 #78A74C
analogous
#4D4CA7 #7B4CA7 #A74CA6
triadic
#7B4CA7 #A77B4C #4CA77B
tetradic
#7B4CA7 #A74D4C #78A74C #4CA6A7
square
#7B4CA7 #A74D4C #78A74C #4CA6A7
split-complementary
#7B4CA7 #A6A74C #4CA74D
monochromatic
#3D2653 #5C397D #7B4CA7 #9972BF #B89CD2

Accessibility & contrast

On white

6.12
#7B4CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7B4CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4CA7
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4CA7#FFFFFF#000000##FFFFFF
##7B4CA71.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E60AA
Deuteranopia (green-blind)
#3D62A5
Tritanopia (blue-blind)
#745D72
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7b4ca7;
/* rgb */ color: rgb(123, 76, 167);
/* oklch */ color: oklch(51.1% 0.144 305.8);
Tailwind
colors: {
  custom: {
    50: '#a480c1',
    500: '#7b4ca7',
    950: '#000000',
  },
}
SCSS
$custom: #7b4ca7;
$custom-light: #a480c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4ca7",
  "rgb": {
    "r": 123,
    "g": 76,
    "b": 167
  },
  "hsl": {
    "h": 270.989,
    "s": 37.449,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51145,
    "c": 0.1444,
    "h": 305.8
  },
  "luminance": 0.1217
}

Semantic roles & 50–950 ramp

primary
#7B4CA7
secondary
#A7BE90
accent
#CD5A92
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7B4CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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