#7A3299#7A3299

#7A3299 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.4% C 0.168 H 314.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#7A3299
RGBrgb(122, 50, 153)
HSLhsl(282, 51%, 40%)
HSVhsv(282, 67%, 60%)
CMYKcmyk(20.3%, 67.3%, 0%, 40%)
CIE-LABlab(35.44, 47.98, -42.93)
CIE-LCHlch(35.44, 64.38, 318.18°)
OKLaboklab(46.43% 0.1166 -0.1208)
OKLCHoklch(46.43% 0.168 314)
XYZxyz(14.9154, 8.7192, 31.0281)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A3299 #519932
analogous
#473299 #7A3299 #993284
triadic
#7A3299 #997A32 #32997A
tetradic
#7A3299 #994732 #519932 #328499
square
#7A3299 #994732 #519932 #328499
split-complementary
#7A3299 #849932 #329947
monochromatic
#30143D #55236B #7A3299 #9D46C2 #B574D2

Accessibility & contrast

On white

7.65
#7A3299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7A3299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A3299
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A3299#FFFFFF#000000##FFFFFF
##7A32991.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#2D5597
Tritanopia (blue-blind)
#774661
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a3299;
/* rgb */ color: rgb(122, 50, 153);
/* oklch */ color: oklch(46.4% 0.168 314.0);
Tailwind
colors: {
  custom: {
    50: '#a46fb8',
    500: '#7a3299',
    950: '#000000',
  },
}
SCSS
$custom: #7a3299;
$custom-light: #a46fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a3299",
  "rgb": {
    "r": 122,
    "g": 50,
    "b": 153
  },
  "hsl": {
    "h": 281.942,
    "s": 50.739,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46433,
    "c": 0.1679,
    "h": 314
  },
  "luminance": 0.08719
}

Semantic roles & 50–950 ramp

primary
#7A3299
secondary
#84BA6D
accent
#DA4E78
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7A3299

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

Preview Lab → · Contrast checker → · Palette generator →

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