#7B2991#7B2991

#7B2991 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.172 H 318.3°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7B2991
RGBrgb(123, 41, 145)
HSLhsl(287, 56%, 36%)
HSVhsv(287, 72%, 57%)
CMYKcmyk(15.2%, 71.7%, 0%, 43.1%)
CIE-LABlab(33.65, 50.49, -40.90)
CIE-LCHlch(33.65, 64.98, 320.99°)
OKLaboklab(45.02% 0.1286 -0.1148)
OKLCHoklch(45.02% 0.172 318.3)
XYZxyz(14.0714, 7.8418, 27.5550)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2991 #3F9129
analogous
#472991 #7B2991 #912973
triadic
#7B2991 #917B29 #29917B
tetradic
#7B2991 #914729 #3F9129 #297391
square
#7B2991 #914729 #3F9129 #297391
split-complementary
#7B2991 #739129 #299147
monochromatic
#2A0E32 #531C61 #7B2991 #A336C1 #BB62D3

Accessibility & contrast

On white

8.18
#7B2991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7B2991 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2991
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2991#FFFFFF#000000##FFFFFF
##7B29911.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A94
Deuteranopia (green-blind)
#2E528F
Tritanopia (blue-blind)
#7B3D5A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b2991;
/* rgb */ color: rgb(123, 41, 145);
/* oklch */ color: oklch(45.0% 0.172 318.3);
Tailwind
colors: {
  custom: {
    50: '#a56ab2',
    500: '#7b2991',
    950: '#000000',
  },
}
SCSS
$custom: #7b2991;
$custom-light: #a56ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2991",
  "rgb": {
    "r": 123,
    "g": 41,
    "b": 145
  },
  "hsl": {
    "h": 287.308,
    "s": 55.914,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45016,
    "c": 0.17239,
    "h": 318.3
  },
  "luminance": 0.07841
}

Semantic roles & 50–950 ramp

primary
#7B2991
secondary
#71B85D
accent
#DF4968
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2991

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

Preview Lab → · Contrast checker → · Palette generator →

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