#7B339C#7B339C

#7B339C is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.9% C 0.170 H 313.3°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#7B339C
RGBrgb(123, 51, 156)
HSLhsl(281, 51%, 41%)
HSVhsv(281, 67%, 61%)
CMYKcmyk(21.2%, 67.3%, 0%, 38.8%)
CIE-LABlab(35.94, 48.40, -43.92)
CIE-LCHlch(35.94, 65.36, 317.78°)
OKLaboklab(46.89% 0.1166 -0.1237)
OKLCHoklch(46.89% 0.17 313.3)
XYZxyz(15.3519, 8.9794, 32.3705)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B339C #549C33
analogous
#46339C #7B339C #9C3388
triadic
#7B339C #9C7B33 #339C7B
tetradic
#7B339C #9C4633 #549C33 #33889C
square
#7B339C #9C4633 #549C33 #33889C
split-complementary
#7B339C #889C33 #339C46
monochromatic
#321540 #57246E #7B339C #9D49C3 #B677D3

Accessibility & contrast

On white

7.51
#7B339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7B339C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B339C
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B339C#FFFFFF#000000##FFFFFF
##7B339C1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519F
Deuteranopia (green-blind)
#2C569A
Tritanopia (blue-blind)
#784863
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b339c;
/* rgb */ color: rgb(123, 51, 156);
/* oklch */ color: oklch(46.9% 0.170 313.3);
Tailwind
colors: {
  custom: {
    50: '#a470ba',
    500: '#7b339c',
    950: '#000000',
  },
}
SCSS
$custom: #7b339c;
$custom-light: #a470ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7b339c",
  "rgb": {
    "r": 123,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 281.143,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46889,
    "c": 0.16997,
    "h": 313.3
  },
  "luminance": 0.08979
}

Semantic roles & 50–950 ramp

primary
#7B339C
secondary
#87BB70
accent
#DA4E7A
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B339C

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

Preview Lab → · Contrast checker → · Palette generator →

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