#7A4CB2#7A4CB2

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

Color values

HEX#7A4CB2
RGBrgb(122, 76, 178)
HSLhsl(267, 40%, 50%)
HSVhsv(267, 57%, 70%)
CMYKcmyk(31.5%, 57.3%, 0%, 30.2%)
CIE-LABlab(42.03, 40.38, -47.30)
CIE-LCHlch(42.03, 62.19, 310.49°)
OKLaboklab(51.74% 0.0835 -0.1337)
OKLCHoklch(51.74% 0.158 302)
XYZxyz(18.6445, 12.5208, 43.5453)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4CB2 #84B24C
analogous
#4C51B2 #7A4CB2 #AD4CB2
triadic
#7A4CB2 #B27A4C #4CB27A
tetradic
#7A4CB2 #B24C51 #84B24C #4CB2AD
square
#7A4CB2 #B24C51 #84B24C #4CB2AD
split-complementary
#7A4CB2 #B2AD4C #51B24C
monochromatic
#3F275C #5D3A87 #7A4CB2 #9A76C5 #BAA1D7

Accessibility & contrast

On white

5.99
#7A4CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7A4CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4CB2
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4CB2#FFFFFF#000000##FFFFFF
##7A4CB21.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2062B5
Deuteranopia (green-blind)
#3263B0
Tritanopia (blue-blind)
#6F6078
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7a4cb2;
/* rgb */ color: rgb(122, 76, 178);
/* oklch */ color: oklch(51.7% 0.158 302.0);
Tailwind
colors: {
  custom: {
    50: '#a480ca',
    500: '#7a4cb2',
    950: '#000000',
  },
}
SCSS
$custom: #7a4cb2;
$custom-light: #a480ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4cb2",
  "rgb": {
    "r": 122,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 267.059,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51735,
    "c": 0.15764,
    "h": 302
  },
  "luminance": 0.12521
}

Semantic roles & 50–950 ramp

primary
#7A4CB2
secondary
#AFC496
accent
#D0589A
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7A4CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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