#7B2B94#7B2B94

#7B2B94 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.4% C 0.173 H 317.0°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7B2B94
RGBrgb(123, 43, 148)
HSLhsl(286, 55%, 37%)
HSVhsv(286, 71%, 58%)
CMYKcmyk(16.9%, 70.9%, 0%, 42%)
CIE-LABlab(34.14, 50.27, -41.95)
CIE-LCHlch(34.14, 65.47, 320.16°)
OKLaboklab(45.43% 0.1262 -0.1178)
OKLCHoklch(45.43% 0.173 317)
XYZxyz(14.3768, 8.0774, 28.8130)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2B94 #44942B
analogous
#462B94 #7B2B94 #942B79
triadic
#7B2B94 #947B2B #2B947B
tetradic
#7B2B94 #94462B #44942B #2B7994
square
#7B2B94 #94462B #44942B #2B7994
split-complementary
#7B2B94 #79942B #2B9446
monochromatic
#2C0F35 #541D65 #7B2B94 #A239C3 #B967D3

Accessibility & contrast

On white

8.03
#7B2B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7B2B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2B94
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2B94#FFFFFF#000000##FFFFFF
##7B2B941.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B97
Deuteranopia (green-blind)
#2D5392
Tritanopia (blue-blind)
#7A405C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b2b94;
/* rgb */ color: rgb(123, 43, 148);
/* oklch */ color: oklch(45.4% 0.173 317.0);
Tailwind
colors: {
  custom: {
    50: '#a56cb4',
    500: '#7b2b94',
    950: '#000000',
  },
}
SCSS
$custom: #7b2b94;
$custom-light: #a56cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2b94",
  "rgb": {
    "r": 123,
    "g": 43,
    "b": 148
  },
  "hsl": {
    "h": 285.714,
    "s": 54.974,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45431,
    "c": 0.17269,
    "h": 317
  },
  "luminance": 0.08077
}

Semantic roles & 50–950 ramp

primary
#7B2B94
secondary
#77B962
accent
#DE496D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2B94

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

Preview Lab → · Contrast checker → · Palette generator →

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