#7B2997#7B2997

#7B2997 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.178 H 316.0°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7B2997
RGBrgb(123, 41, 151)
HSLhsl(285, 57%, 38%)
HSVhsv(285, 73%, 59%)
CMYKcmyk(18.5%, 72.8%, 0%, 40.8%)
CIE-LABlab(34.05, 51.72, -43.93)
CIE-LCHlch(34.05, 67.86, 319.66°)
OKLaboklab(45.43% 0.1281 -0.1236)
OKLCHoklch(45.43% 0.178 316)
XYZxyz(14.5464, 8.0318, 30.0562)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2997 #459729
analogous
#442997 #7B2997 #97297C
triadic
#7B2997 #977B29 #29977B
tetradic
#7B2997 #974429 #459729 #297C97
square
#7B2997 #974429 #459729 #297C97
split-complementary
#7B2997 #7C9729 #299744
monochromatic
#2D0F37 #541C67 #7B2997 #A236C7 #B965D5

Accessibility & contrast

On white

8.06
#7B2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2997
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2997#FFFFFF#000000##FFFFFF
##7B29971.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#285295
Tritanopia (blue-blind)
#79405D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b2997;
/* rgb */ color: rgb(123, 41, 151);
/* oklch */ color: oklch(45.4% 0.178 316.0);
Tailwind
colors: {
  custom: {
    50: '#a56bb6',
    500: '#7b2997',
    950: '#000000',
  },
}
SCSS
$custom: #7b2997;
$custom-light: #a56bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2997",
  "rgb": {
    "r": 123,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 284.727,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45427,
    "c": 0.17804,
    "h": 316
  },
  "luminance": 0.08031
}

Semantic roles & 50–950 ramp

primary
#7B2997
secondary
#78BB61
accent
#E1476E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2997

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

Preview Lab → · Contrast checker → · Palette generator →

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