#7A3397#7A3397

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

Color values

HEX#7A3397
RGBrgb(122, 51, 151)
HSLhsl(283, 50%, 40%)
HSVhsv(283, 66%, 59%)
CMYKcmyk(19.2%, 66.2%, 0%, 40.8%)
CIE-LABlab(35.48, 47.07, -41.64)
CIE-LCHlch(35.48, 62.85, 318.50°)
OKLaboklab(46.42% 0.1155 -0.117)
OKLCHoklch(46.42% 0.164 314.6)
XYZxyz(14.7949, 8.7401, 30.1798)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A3397 #509733
analogous
#483397 #7A3397 #973382
triadic
#7A3397 #977A33 #33977A
tetradic
#7A3397 #974833 #509733 #338297
square
#7A3397 #974833 #509733 #338297
split-complementary
#7A3397 #829733 #339748
monochromatic
#30143C #552469 #7A3397 #9D47C1 #B574D0

Accessibility & contrast

On white

7.64
#7A3397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7A3397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A3397
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A3397#FFFFFF#000000##FFFFFF
##7A33971.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044F9A
Deuteranopia (green-blind)
#305595
Tritanopia (blue-blind)
#784660
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a3397;
/* rgb */ color: rgb(122, 51, 151);
/* oklch */ color: oklch(46.4% 0.164 314.6);
Tailwind
colors: {
  custom: {
    50: '#a470b6',
    500: '#7a3397',
    950: '#000000',
  },
}
SCSS
$custom: #7a3397;
$custom-light: #a470b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a3397",
  "rgb": {
    "r": 122,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 282.6,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46421,
    "c": 0.16446,
    "h": 314.6
  },
  "luminance": 0.0874
}

Semantic roles & 50–950 ramp

primary
#7A3397
secondary
#83B86D
accent
#D94F77
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0811
muted
#7F7B80

Preview Lab

Preview with #7A3397

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

Preview Lab → · Contrast checker → · Palette generator →

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