#7A4EB0#7A4EB0

#7A4EB0 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.9% C 0.152 H 302.1°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7A4EB0
RGBrgb(122, 78, 176)
HSLhsl(267, 39%, 50%)
HSVhsv(267, 56%, 69%)
CMYKcmyk(30.7%, 55.7%, 0%, 31%)
CIE-LABlab(42.34, 38.75, -45.63)
CIE-LCHlch(42.34, 59.86, 310.34°)
OKLaboklab(51.92% 0.0808 -0.1288)
OKLCHoklch(51.92% 0.152 302.1)
XYZxyz(18.5851, 12.7209, 42.5421)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4EB0 #84B04E
analogous
#4E53B0 #7A4EB0 #AB4EB0
triadic
#7A4EB0 #B07A4E #4EB07A
tetradic
#7A4EB0 #B04E53 #84B04E #4EB0AB
square
#7A4EB0 #B04E53 #84B04E #4EB0AB
split-complementary
#7A4EB0 #B0AB4E #53B04E
monochromatic
#3F285B #5D3B86 #7A4EB0 #9A78C3 #BAA2D6

Accessibility & contrast

On white

5.93
#7A4EB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7A4EB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4EB0
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4EB0#FFFFFF#000000##FFFFFF
##7A4EB01.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2863B3
Deuteranopia (green-blind)
#3764AE
Tritanopia (blue-blind)
#706177
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7a4eb0;
/* rgb */ color: rgb(122, 78, 176);
/* oklch */ color: oklch(51.9% 0.152 302.1);
Tailwind
colors: {
  custom: {
    50: '#a381c8',
    500: '#7a4eb0',
    950: '#000000',
  },
}
SCSS
$custom: #7a4eb0;
$custom-light: #a381c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4eb0",
  "rgb": {
    "r": 122,
    "g": 78,
    "b": 176
  },
  "hsl": {
    "h": 266.939,
    "s": 38.583,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51922,
    "c": 0.15207,
    "h": 302.1
  },
  "luminance": 0.12721
}

Semantic roles & 50–950 ramp

primary
#7A4EB0
secondary
#AFC397
accent
#CF599A
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7A4EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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