#7A4CBC#7A4CBC

#7A4CBC is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.4% C 0.170 H 299.4°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7A4CBC
RGBrgb(122, 76, 188)
HSLhsl(265, 46%, 52%)
HSVhsv(265, 60%, 74%)
CMYKcmyk(35.1%, 59.6%, 0%, 26.3%)
CIE-LABlab(42.67, 42.95, -52.14)
CIE-LCHlch(42.67, 67.55, 309.48°)
OKLaboklab(52.41% 0.0834 -0.1479)
OKLCHoklch(52.41% 0.17 299.4)
XYZxyz(19.6854, 12.9371, 49.0272)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4CBC #8EBC4C
analogous
#4C56BC #7A4CBC #B24CBC
triadic
#7A4CBC #BC7A4C #4CBC7A
tetradic
#7A4CBC #BC4C56 #8EBC4C #4CBCB2
square
#7A4CBC #BC4C56 #8EBC4C #4CBCB2
split-complementary
#7A4CBC #BCB24C #56BC4C
monochromatic
#412767 #5D3794 #7A4CBC #9B79CD #BCA5DD

Accessibility & contrast

On white

5.85
#7A4CBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7A4CBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4CBC
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4CBC#FFFFFF#000000##FFFFFF
##7A4CBC1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0965C0
Deuteranopia (green-blind)
#2664B9
Tritanopia (blue-blind)
#6C647D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7a4cbc;
/* rgb */ color: rgb(122, 76, 188);
/* oklch */ color: oklch(52.4% 0.170 299.4);
Tailwind
colors: {
  custom: {
    50: '#a580d1',
    500: '#7a4cbc',
    950: '#000000',
  },
}
SCSS
$custom: #7a4cbc;
$custom-light: #a580d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4cbc",
  "rgb": {
    "r": 122,
    "g": 76,
    "b": 188
  },
  "hsl": {
    "h": 264.643,
    "s": 45.528,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52405,
    "c": 0.16984,
    "h": 299.4
  },
  "luminance": 0.12937
}

Semantic roles & 50–950 ramp

primary
#7A4CBC
secondary
#B6CA99
accent
#D553A0
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7A4CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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