#7A4CB8#7A4CB8

#7A4CB8 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.1% C 0.165 H 300.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7A4CB8
RGBrgb(122, 76, 184)
HSLhsl(266, 43%, 51%)
HSVhsv(266, 59%, 72%)
CMYKcmyk(33.7%, 58.7%, 0%, 27.8%)
CIE-LABlab(42.41, 41.91, -50.22)
CIE-LCHlch(42.41, 65.41, 309.85°)
OKLaboklab(52.13% 0.0835 -0.1423)
OKLCHoklch(52.13% 0.165 300.4)
XYZxyz(19.2601, 12.7670, 46.7877)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4CB8 #8AB84C
analogous
#4C54B8 #7A4CB8 #B04CB8
triadic
#7A4CB8 #B87A4C #4CB87A
tetradic
#7A4CB8 #B84C54 #8AB84C #4CB8B0
square
#7A4CB8 #B84C54 #8AB84C #4CB8B0
split-complementary
#7A4CB8 #B8B04C #54B84C
monochromatic
#402763 #5D388E #7A4CB8 #9B78C9 #BBA4DB

Accessibility & contrast

On white

5.91
#7A4CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7A4CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4CB8
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4CB8#FFFFFF#000000##FFFFFF
##7A4CB81.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a4cb8;
/* rgb */ color: rgb(122, 76, 184);
/* oklch */ color: oklch(52.1% 0.165 300.4);
Tailwind
colors: {
  custom: {
    50: '#a480ce',
    500: '#7a4cb8',
    950: '#000000',
  },
}
SCSS
$custom: #7a4cb8;
$custom-light: #a480ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4cb8",
  "rgb": {
    "r": 122,
    "g": 76,
    "b": 184
  },
  "hsl": {
    "h": 265.556,
    "s": 43.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52133,
    "c": 0.16497,
    "h": 300.4
  },
  "luminance": 0.12767
}

Semantic roles & 50–950 ramp

primary
#7A4CB8
secondary
#B3C898
accent
#D3559D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7A4CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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