#7B2A96#7B2A96

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

Color values

HEX#7B2A96
RGBrgb(123, 42, 150)
HSLhsl(285, 56%, 38%)
HSVhsv(285, 72%, 59%)
CMYKcmyk(18%, 72%, 0%, 41.2%)
CIE-LABlab(34.13, 51.10, -43.20)
CIE-LCHlch(34.13, 66.91, 319.79°)
OKLaboklab(45.46% 0.1272 -0.1215)
OKLCHoklch(45.46% 0.176 316.3)
XYZxyz(14.5005, 8.0695, 29.6420)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A96 #45962A
analogous
#452A96 #7B2A96 #962A7B
triadic
#7B2A96 #967B2A #2A967B
tetradic
#7B2A96 #96452A #45962A #2A7B96
square
#7B2A96 #96452A #45962A #2A7B96
split-complementary
#7B2A96 #7B962A #2A9645
monochromatic
#2D0F36 #541D66 #7B2A96 #A237C6 #B966D4

Accessibility & contrast

On white

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

On black

2.61
#7B2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7B2A96#FFFFFF#000000##FFFFFF
##7B2A961.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#2A5394
Tritanopia (blue-blind)
#79405D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b2a96;
/* rgb */ color: rgb(123, 42, 150);
/* oklch */ color: oklch(45.5% 0.176 316.3);
Tailwind
colors: {
  custom: {
    50: '#a56bb5',
    500: '#7b2a96',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a96;
$custom-light: #a56bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a96",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 285,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45461,
    "c": 0.17586,
    "h": 316.3
  },
  "luminance": 0.08069
}

Semantic roles & 50–950 ramp

primary
#7B2A96
secondary
#78BA61
accent
#E0486E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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