#7A339B#7A339B

#7A339B is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.7% C 0.169 H 313.2°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#7A339B
RGBrgb(122, 51, 155)
HSLhsl(281, 50%, 40%)
HSVhsv(281, 67%, 61%)
CMYKcmyk(21.3%, 67.1%, 0%, 39.2%)
CIE-LABlab(35.74, 47.95, -43.66)
CIE-LCHlch(35.74, 64.85, 317.68°)
OKLaboklab(46.69% 0.1153 -0.1229)
OKLCHoklch(46.69% 0.169 313.2)
XYZxyz(15.1252, 8.8722, 31.9197)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A339B #549B33
analogous
#46339B #7A339B #9B3388
triadic
#7A339B #9B7A33 #339B7A
tetradic
#7A339B #9B4633 #549B33 #33889B
square
#7A339B #9B4633 #549B33 #33889B
split-complementary
#7A339B #889B33 #339B46
monochromatic
#32153F #56246D #7A339B #9C48C3 #B576D2

Accessibility & contrast

On white

7.57
#7A339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A339B
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A339B#FFFFFF#000000##FFFFFF
##7A339B1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#2C5699
Tritanopia (blue-blind)
#774862
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a339b;
/* rgb */ color: rgb(122, 51, 155);
/* oklch */ color: oklch(46.7% 0.169 313.2);
Tailwind
colors: {
  custom: {
    50: '#a470b9',
    500: '#7a339b',
    950: '#000000',
  },
}
SCSS
$custom: #7a339b;
$custom-light: #a470b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a339b",
  "rgb": {
    "r": 122,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 280.962,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46689,
    "c": 0.16857,
    "h": 313.2
  },
  "luminance": 0.08872
}

Semantic roles & 50–950 ramp

primary
#7A339B
secondary
#87BA6F
accent
#DA4E7A
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7A339B

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

Preview Lab → · Contrast checker → · Palette generator →

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