#7B2497#7B2497

#7B2497 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.184 H 316.4°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7B2497
RGBrgb(123, 36, 151)
HSLhsl(285, 61%, 37%)
HSVhsv(285, 76%, 59%)
CMYKcmyk(18.5%, 76.2%, 0%, 40.8%)
CIE-LABlab(33.37, 53.67, -45.03)
CIE-LCHlch(33.37, 70.06, 320.00°)
OKLaboklab(44.94% 0.1331 -0.1268)
OKLCHoklch(44.94% 0.184 316.4)
XYZxyz(14.3843, 7.7077, 30.0022)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2497 #409724
analogous
#422497 #7B2497 #97247A
triadic
#7B2497 #977B24 #24977B
tetradic
#7B2497 #974224 #409724 #247A97
square
#7B2497 #974224 #409724 #247A97
split-complementary
#7B2497 #7A9724 #249742
monochromatic
#2A0C34 #531866 #7B2497 #A330C8 #BA5DD8

Accessibility & contrast

On white

8.26
#7B2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7B2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2497
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2497#FFFFFF#000000##FFFFFF
##7B24971.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#245194
Tritanopia (blue-blind)
#793D5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b2497;
/* rgb */ color: rgb(123, 36, 151);
/* oklch */ color: oklch(44.9% 0.184 316.4);
Tailwind
colors: {
  custom: {
    50: '#a568b6',
    500: '#7b2497',
    950: '#000000',
  },
}
SCSS
$custom: #7b2497;
$custom-light: #a568b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2497",
  "rgb": {
    "r": 123,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 285.391,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44942,
    "c": 0.18383,
    "h": 316.4
  },
  "luminance": 0.07707
}

Semantic roles & 50–950 ramp

primary
#7B2497
secondary
#72BD5A
accent
#E5436A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2497

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

Preview Lab → · Contrast checker → · Palette generator →

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