#7B339E#7B339E

#7B339E is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.172 H 312.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7B339E
RGBrgb(123, 51, 158)
HSLhsl(280, 51%, 41%)
HSVhsv(280, 68%, 62%)
CMYKcmyk(22.2%, 67.7%, 0%, 38%)
CIE-LABlab(36.08, 48.84, -44.92)
CIE-LCHlch(36.08, 66.36, 317.39°)
OKLaboklab(47.03% 0.1165 -0.1266)
OKLCHoklch(47.03% 0.172 312.6)
XYZxyz(15.5227, 9.0477, 33.2698)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B339E #569E33
analogous
#45339E #7B339E #9E338B
triadic
#7B339E #9E7B33 #339E7B
tetradic
#7B339E #9E4533 #569E33 #338B9E
square
#7B339E #9E4533 #569E33 #338B9E
split-complementary
#7B339E #8B9E33 #339E45
monochromatic
#331541 #572470 #7B339E #9C4AC4 #B678D3

Accessibility & contrast

On white

7.47
#7B339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7B339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B339E
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B339E#FFFFFF#000000##FFFFFF
##7B339E1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A1
Deuteranopia (green-blind)
#2A569C
Tritanopia (blue-blind)
#774964
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b339e;
/* rgb */ color: rgb(123, 51, 158);
/* oklch */ color: oklch(47.0% 0.172 312.6);
Tailwind
colors: {
  custom: {
    50: '#a570bb',
    500: '#7b339e',
    950: '#000000',
  },
}
SCSS
$custom: #7b339e;
$custom-light: #a570bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b339e",
  "rgb": {
    "r": 123,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 280.374,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47026,
    "c": 0.17202,
    "h": 312.6
  },
  "luminance": 0.09047
}

Semantic roles & 50–950 ramp

primary
#7B339E
secondary
#89BC71
accent
#DB4D7B
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B339E

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

Preview Lab → · Contrast checker → · Palette generator →

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