#7A4E95#7A4E95

#7A4E95 is a mid, moderate violet. Relative luminance 0.118; OKLCH L 50.3% C 0.118 H 311.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7A4E95
RGBrgb(122, 78, 149)
HSLhsl(277, 31%, 45%)
HSVhsv(277, 48%, 58%)
CMYKcmyk(18.1%, 47.7%, 0%, 41.6%)
CIE-LABlab(40.83, 32.13, -31.94)
CIE-LCHlch(40.83, 45.31, 315.17°)
OKLaboklab(50.31% 0.0783 -0.0889)
OKLCHoklch(50.31% 0.118 311.4)
XYZxyz(16.1743, 11.7566, 29.8451)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4E95 #69954E
analogous
#564E95 #7A4E95 #954E8D
triadic
#7A4E95 #957A4E #4E957A
tetradic
#7A4E95 #95564E #69954E #4E8D95
square
#7A4E95 #95564E #69954E #4E8D95
split-complementary
#7A4E95 #8D954E #4E9556
monochromatic
#382445 #59396D #7A4E95 #986DB3 #B596C8

Accessibility & contrast

On white

6.27
#7A4E95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7A4E95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4E95
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4E95#FFFFFF#000000##FFFFFF
##7A4E951.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5E98
Deuteranopia (green-blind)
#4A6193
Tritanopia (blue-blind)
#77596A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7a4e95;
/* rgb */ color: rgb(122, 78, 149);
/* oklch */ color: oklch(50.3% 0.118 311.4);
Tailwind
colors: {
  custom: {
    50: '#a281b4',
    500: '#7a4e95',
    950: '#000000',
  },
}
SCSS
$custom: #7a4e95;
$custom-light: #a281b4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4e95",
  "rgb": {
    "r": 122,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 277.183,
    "s": 31.278,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50309,
    "c": 0.11847,
    "h": 311.4
  },
  "luminance": 0.11756
}

Semantic roles & 50–950 ramp

primary
#7A4E95
secondary
#9AB48A
accent
#C76088
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7A4E95

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

Preview Lab → · Contrast checker → · Palette generator →

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