#7B3188#7B3188

#7B3188 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.4% C 0.153 H 321.4°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7B3188
RGBrgb(123, 49, 136)
HSLhsl(291, 47%, 36%)
HSVhsv(291, 64%, 53%)
CMYKcmyk(9.6%, 64%, 0%, 46.7%)
CIE-LABlab(34.37, 45.12, -34.22)
CIE-LCHlch(34.37, 56.63, 322.83°)
OKLaboklab(45.35% 0.1194 -0.0953)
OKLCHoklch(45.35% 0.153 321.4)
XYZxyz(13.7101, 8.1858, 24.1456)
Luminance0.0819 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3188 #3E8831
analogous
#503188 #7B3188 #88316A
triadic
#7B3188 #887B31 #31887B
tetradic
#7B3188 #885031 #3E8831 #316A88
square
#7B3188 #885031 #3E8831 #316A88
split-complementary
#7B3188 #6A8831 #318850
monochromatic
#2A112E #52215B #7B3188 #A441B5 #BB6AC9

Accessibility & contrast

On white

7.96
#7B3188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7B3188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B3188
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3188#FFFFFF#000000##FFFFFF
##7B31881.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4B8B
Deuteranopia (green-blind)
#3B5486
Tritanopia (blue-blind)
#7C3F58
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b3188;
/* rgb */ color: rgb(123, 49, 136);
/* oklch */ color: oklch(45.4% 0.153 321.4);
Tailwind
colors: {
  custom: {
    50: '#a46eab',
    500: '#7b3188',
    950: '#000000',
  },
}
SCSS
$custom: #7b3188;
$custom-light: #a46eab;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3188",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 136
  },
  "hsl": {
    "h": 291.034,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45353,
    "c": 0.15277,
    "h": 321.4
  },
  "luminance": 0.08185
}

Semantic roles & 50–950 ramp

primary
#7B3188
secondary
#6FB164
accent
#D75165
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7B3188

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

Preview Lab → · Contrast checker → · Palette generator →

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