#7A4E98#7A4E98

#7A4E98 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 50.5% C 0.122 H 310.1°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#7A4E98
RGBrgb(122, 78, 152)
HSLhsl(276, 32%, 45%)
HSVhsv(276, 49%, 60%)
CMYKcmyk(19.7%, 48.7%, 0%, 40.4%)
CIE-LABlab(40.98, 32.84, -33.50)
CIE-LCHlch(40.98, 46.91, 314.43°)
OKLaboklab(50.48% 0.0788 -0.0934)
OKLCHoklch(50.48% 0.122 310.1)
XYZxyz(16.4169, 11.8536, 31.1228)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4E98 #6C984E
analogous
#554E98 #7A4E98 #984E91
triadic
#7A4E98 #987A4E #4E987A
tetradic
#7A4E98 #98554E #6C984E #4E9198
square
#7A4E98 #98554E #6C984E #4E9198
split-complementary
#7A4E98 #91984E #4E9855
monochromatic
#392447 #5A3970 #7A4E98 #986EB5 #B597CA

Accessibility & contrast

On white

6.23
#7A4E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7A4E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4E98
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4E98#FFFFFF#000000##FFFFFF
##7A4E981.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5F9B
Deuteranopia (green-blind)
#486196
Tritanopia (blue-blind)
#765A6C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7a4e98;
/* rgb */ color: rgb(122, 78, 152);
/* oklch */ color: oklch(50.5% 0.122 310.1);
Tailwind
colors: {
  custom: {
    50: '#a281b6',
    500: '#7a4e98',
    950: '#000000',
  },
}
SCSS
$custom: #7a4e98;
$custom-light: #a281b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4e98",
  "rgb": {
    "r": 122,
    "g": 78,
    "b": 152
  },
  "hsl": {
    "h": 275.676,
    "s": 32.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50476,
    "c": 0.12218,
    "h": 310.1
  },
  "luminance": 0.11853
}

Semantic roles & 50–950 ramp

primary
#7A4E98
secondary
#9DB68C
accent
#C85F8A
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7A4E98

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

Preview Lab → · Contrast checker → · Palette generator →

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