#7A3198#7A3198

#7A3198 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.2% C 0.168 H 314.5°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7A3198
RGBrgb(122, 49, 152)
HSLhsl(283, 51%, 39%)
HSVhsv(283, 68%, 60%)
CMYKcmyk(19.7%, 67.8%, 0%, 40.4%)
CIE-LABlab(35.21, 48.23, -42.69)
CIE-LCHlch(35.21, 64.41, 318.48°)
OKLaboklab(46.25% 0.1179 -0.1201)
OKLCHoklch(46.25% 0.168 314.5)
XYZxyz(14.7909, 8.6017, 30.5808)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A3198 #4F9831
analogous
#463198 #7A3198 #983183
triadic
#7A3198 #987A31 #31987A
tetradic
#7A3198 #984631 #4F9831 #318398
square
#7A3198 #984631 #4F9831 #318398
split-complementary
#7A3198 #839831 #319846
monochromatic
#30133B #55226A #7A3198 #9E44C3 #B672D2

Accessibility & contrast

On white

7.72
#7A3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7A3198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A3198
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A3198#FFFFFF#000000##FFFFFF
##7A31981.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#2D5596
Tritanopia (blue-blind)
#774560
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a3198;
/* rgb */ color: rgb(122, 49, 152);
/* oklch */ color: oklch(46.2% 0.168 314.5);
Tailwind
colors: {
  custom: {
    50: '#a46fb7',
    500: '#7a3198',
    950: '#000000',
  },
}
SCSS
$custom: #7a3198;
$custom-light: #a46fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a3198",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 282.524,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46245,
    "c": 0.16826,
    "h": 314.5
  },
  "luminance": 0.08601
}

Semantic roles & 50–950 ramp

primary
#7A3198
secondary
#82B96B
accent
#DB4D76
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7A3198

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

Preview Lab → · Contrast checker → · Palette generator →

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