#7B2A97#7B2A97

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

Color values

HEX#7B2A97
RGBrgb(123, 42, 151)
HSLhsl(285, 56%, 38%)
HSVhsv(285, 72%, 59%)
CMYKcmyk(18.5%, 72.2%, 0%, 40.8%)
CIE-LABlab(34.19, 51.31, -43.70)
CIE-LCHlch(34.19, 67.40, 319.58°)
OKLaboklab(45.53% 0.1271 -0.123)
OKLCHoklch(45.53% 0.177 315.9)
XYZxyz(14.5814, 8.1018, 30.0679)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A97 #46972A
analogous
#442A97 #7B2A97 #972A7C
triadic
#7B2A97 #977B2A #2A977B
tetradic
#7B2A97 #97442A #46972A #2A7C97
square
#7B2A97 #97442A #46972A #2A7C97
split-complementary
#7B2A97 #7C972A #2A9744
monochromatic
#2D0F37 #541D67 #7B2A97 #A237C7 #B867D5

Accessibility & contrast

On white

8.01
#7B2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2A97
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2A97#FFFFFF#000000##FFFFFF
##7B2A971.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#295395
Tritanopia (blue-blind)
#79405E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b2a97;
/* rgb */ color: rgb(123, 42, 151);
/* oklch */ color: oklch(45.5% 0.177 315.9);
Tailwind
colors: {
  custom: {
    50: '#a56bb6',
    500: '#7b2a97',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a97;
$custom-light: #a56bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a97",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 284.587,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4553,
    "c": 0.17681,
    "h": 315.9
  },
  "luminance": 0.08101
}

Semantic roles & 50–950 ramp

primary
#7B2A97
secondary
#79BB62
accent
#E0486F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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