#7B339F#7B339F

#7B339F is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.1% C 0.173 H 312.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7B339F
RGBrgb(123, 51, 159)
HSLhsl(280, 51%, 41%)
HSVhsv(280, 68%, 62%)
CMYKcmyk(22.6%, 67.9%, 0%, 37.6%)
CIE-LABlab(36.14, 49.06, -45.42)
CIE-LCHlch(36.14, 66.86, 317.21°)
OKLaboklab(47.09% 0.1164 -0.1281)
OKLCHoklch(47.09% 0.173 312.3)
XYZxyz(15.6091, 9.0822, 33.7250)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B339F #579F33
analogous
#45339F #7B339F #9F338D
triadic
#7B339F #9F7B33 #339F7B
tetradic
#7B339F #9F4533 #579F33 #338D9F
square
#7B339F #9F4533 #579F33 #338D9F
split-complementary
#7B339F #8D9F33 #339F45
monochromatic
#331542 #572471 #7B339F #9C4AC5 #B579D4

Accessibility & contrast

On white

7.46
#7B339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7B339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B339F
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B339F#FFFFFF#000000##FFFFFF
##7B339F1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A2
Deuteranopia (green-blind)
#29569D
Tritanopia (blue-blind)
#774965
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b339f;
/* rgb */ color: rgb(123, 51, 159);
/* oklch */ color: oklch(47.1% 0.173 312.3);
Tailwind
colors: {
  custom: {
    50: '#a570bc',
    500: '#7b339f',
    950: '#000000',
  },
}
SCSS
$custom: #7b339f;
$custom-light: #a570bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b339f",
  "rgb": {
    "r": 123,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 280,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47094,
    "c": 0.17305,
    "h": 312.3
  },
  "luminance": 0.09082
}

Semantic roles & 50–950 ramp

primary
#7B339F
secondary
#8ABC71
accent
#DB4D7C
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B339F

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

Preview Lab → · Contrast checker → · Palette generator →

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