#7B2797#7B2797

#7B2797 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.180 H 316.2°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7B2797
RGBrgb(123, 39, 151)
HSLhsl(285, 59%, 37%)
HSVhsv(285, 74%, 59%)
CMYKcmyk(18.5%, 74.2%, 0%, 40.8%)
CIE-LABlab(33.77, 52.52, -44.38)
CIE-LCHlch(33.77, 68.76, 319.80°)
OKLaboklab(45.23% 0.1301 -0.125)
OKLCHoklch(45.23% 0.18 316.2)
XYZxyz(14.4789, 7.8969, 30.0337)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2797 #439727
analogous
#432797 #7B2797 #97277B
triadic
#7B2797 #977B27 #27977B
tetradic
#7B2797 #974327 #439727 #277B97
square
#7B2797 #974327 #439727 #277B97
split-complementary
#7B2797 #7B9727 #279743
monochromatic
#2C0E36 #531A66 #7B2797 #A334C8 #B962D6

Accessibility & contrast

On white

8.14
#7B2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7B2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2797
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2797#FFFFFF#000000##FFFFFF
##7B27971.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#265295
Tritanopia (blue-blind)
#793F5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b2797;
/* rgb */ color: rgb(123, 39, 151);
/* oklch */ color: oklch(45.2% 0.180 316.2);
Tailwind
colors: {
  custom: {
    50: '#a56ab6',
    500: '#7b2797',
    950: '#000000',
  },
}
SCSS
$custom: #7b2797;
$custom-light: #a56ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2797",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 285,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45226,
    "c": 0.18043,
    "h": 316.2
  },
  "luminance": 0.07896
}

Semantic roles & 50–950 ramp

primary
#7B2797
secondary
#75BC5E
accent
#E2466D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2797

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

Preview Lab → · Contrast checker → · Palette generator →

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