#7A3498#7A3498

#7A3498 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.6% C 0.164 H 314.2°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7A3498
RGBrgb(122, 52, 152)
HSLhsl(282, 49%, 40%)
HSVhsv(282, 66%, 60%)
CMYKcmyk(19.7%, 65.8%, 0%, 40.4%)
CIE-LABlab(35.72, 46.81, -41.87)
CIE-LCHlch(35.72, 62.81, 318.19°)
OKLaboklab(46.61% 0.1143 -0.1177)
OKLCHoklch(46.61% 0.164 314.2)
XYZxyz(14.9206, 8.8610, 30.6241)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A3498 #529834
analogous
#483498 #7A3498 #983484
triadic
#7A3498 #987A34 #34987A
tetradic
#7A3498 #984834 #529834 #348498
square
#7A3498 #984834 #529834 #348498
split-complementary
#7A3498 #849834 #349848
monochromatic
#31153D #55246A #7A3498 #9D49C1 #B576D0

Accessibility & contrast

On white

7.58
#7A3498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7A3498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A3498
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A3498#FFFFFF#000000##FFFFFF
##7A34981.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05509B
Deuteranopia (green-blind)
#305696
Tritanopia (blue-blind)
#774761
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a3498;
/* rgb */ color: rgb(122, 52, 152);
/* oklch */ color: oklch(46.6% 0.164 314.2);
Tailwind
colors: {
  custom: {
    50: '#a470b7',
    500: '#7a3498',
    950: '#000000',
  },
}
SCSS
$custom: #7a3498;
$custom-light: #a470b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a3498",
  "rgb": {
    "r": 122,
    "g": 52,
    "b": 152
  },
  "hsl": {
    "h": 282,
    "s": 49.02,
    "l": 40
  },
  "oklch": {
    "l": 0.46612,
    "c": 0.16406,
    "h": 314.2
  },
  "luminance": 0.08861
}

Semantic roles & 50–950 ramp

primary
#7A3498
secondary
#85B96F
accent
#D94F78
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0811
muted
#7F7B80

Preview Lab

Preview with #7A3498

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

Preview Lab → · Contrast checker → · Palette generator →

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