#7A4BB2#7A4BB2

#7A4BB2 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.6% C 0.159 H 302.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7A4BB2
RGBrgb(122, 75, 178)
HSLhsl(267, 41%, 50%)
HSVhsv(267, 58%, 70%)
CMYKcmyk(31.5%, 57.9%, 0%, 30.2%)
CIE-LABlab(41.82, 40.94, -47.64)
CIE-LCHlch(41.82, 62.81, 310.68°)
OKLaboklab(51.58% 0.0848 -0.1347)
OKLCHoklch(51.58% 0.159 302.2)
XYZxyz(18.5761, 12.3841, 43.5226)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4BB2 #83B24B
analogous
#4B50B2 #7A4BB2 #AE4BB2
triadic
#7A4BB2 #B27A4B #4BB27A
tetradic
#7A4BB2 #B24B50 #83B24B #4BB2AE
square
#7A4BB2 #B24B50 #83B24B #4BB2AE
split-complementary
#7A4BB2 #B2AE4B #50B24B
monochromatic
#3F275C #5C3987 #7A4BB2 #9A75C5 #B9A0D7

Accessibility & contrast

On white

6.04
#7A4BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7A4BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4BB2
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4BB2#FFFFFF#000000##FFFFFF
##7A4BB21.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D62B5
Deuteranopia (green-blind)
#3162B0
Tritanopia (blue-blind)
#6F6077
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7a4bb2;
/* rgb */ color: rgb(122, 75, 178);
/* oklch */ color: oklch(51.6% 0.159 302.2);
Tailwind
colors: {
  custom: {
    50: '#a47fca',
    500: '#7a4bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7a4bb2;
$custom-light: #a47fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4bb2",
  "rgb": {
    "r": 122,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 267.379,
    "s": 40.711,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51579,
    "c": 0.15916,
    "h": 302.2
  },
  "luminance": 0.12384
}

Semantic roles & 50–950 ramp

primary
#7A4BB2
secondary
#AEC495
accent
#D15799
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7A4BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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