#7A3286#7A3286

#7A3286 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.2% C 0.149 H 321.7°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7A3286
RGBrgb(122, 50, 134)
HSLhsl(291, 46%, 36%)
HSVhsv(291, 63%, 53%)
CMYKcmyk(9%, 62.7%, 0%, 47.5%)
CIE-LABlab(34.27, 43.98, -33.14)
CIE-LCHlch(34.27, 55.07, 323.00°)
OKLaboklab(45.22% 0.1168 -0.0922)
OKLCHoklch(45.22% 0.149 321.7)
XYZxyz(13.4692, 8.1407, 23.4115)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A3286 #3E8632
analogous
#503286 #7A3286 #863268
triadic
#7A3286 #867A32 #32867A
tetradic
#7A3286 #865032 #3E8632 #326886
square
#7A3286 #865032 #3E8632 #326886
split-complementary
#7A3286 #688632 #328650
monochromatic
#29112D #512159 #7A3286 #A343B3 #BA6BC8

Accessibility & contrast

On white

7.99
#7A3286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7A3286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A3286
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A3286#FFFFFF#000000##FFFFFF
##7A32861.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204B89
Deuteranopia (green-blind)
#3C5384
Tritanopia (blue-blind)
#7B3F57
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a3286;
/* rgb */ color: rgb(122, 50, 134);
/* oklch */ color: oklch(45.2% 0.149 321.7);
Tailwind
colors: {
  custom: {
    50: '#a36fa9',
    500: '#7a3286',
    950: '#000000',
  },
}
SCSS
$custom: #7a3286;
$custom-light: #a36fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a3286",
  "rgb": {
    "r": 122,
    "g": 50,
    "b": 134
  },
  "hsl": {
    "h": 291.429,
    "s": 45.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45217,
    "c": 0.14878,
    "h": 321.7
  },
  "luminance": 0.0814
}

Semantic roles & 50–950 ramp

primary
#7A3286
secondary
#6FAF64
accent
#D55265
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0810
muted
#7F7B7F

Preview Lab

Preview with #7A3286

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

Preview Lab → · Contrast checker → · Palette generator →

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