#7B2597#7B2597

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

Color values

HEX#7B2597
RGBrgb(123, 37, 151)
HSLhsl(285, 61%, 37%)
HSVhsv(285, 75%, 59%)
CMYKcmyk(18.5%, 75.5%, 0%, 40.8%)
CIE-LABlab(33.50, 53.29, -44.82)
CIE-LCHlch(33.50, 69.63, 319.94°)
OKLaboklab(45.04% 0.1321 -0.1262)
OKLCHoklch(45.04% 0.183 316.3)
XYZxyz(14.4150, 7.7690, 30.0124)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2597 #419725
analogous
#422597 #7B2597 #97257A
triadic
#7B2597 #977B25 #25977B
tetradic
#7B2597 #974225 #419725 #257A97
square
#7B2597 #974225 #419725 #257A97
split-complementary
#7B2597 #7A9725 #259742
monochromatic
#2B0D35 #531966 #7B2597 #A331C8 #BA5FD8

Accessibility & contrast

On white

8.22
#7B2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7B2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2597
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2597#FFFFFF#000000##FFFFFF
##7B25971.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b2597;
/* rgb */ color: rgb(123, 37, 151);
/* oklch */ color: oklch(45.0% 0.183 316.3);
Tailwind
colors: {
  custom: {
    50: '#a569b6',
    500: '#7b2597',
    950: '#000000',
  },
}
SCSS
$custom: #7b2597;
$custom-light: #a569b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2597",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 285.263,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45035,
    "c": 0.18272,
    "h": 316.3
  },
  "luminance": 0.07768
}

Semantic roles & 50–950 ramp

primary
#7B2597
secondary
#73BD5B
accent
#E4446B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2597

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

Preview Lab → · Contrast checker → · Palette generator →

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