#7B2399#7B2399

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

Color values

HEX#7B2399
RGBrgb(123, 35, 153)
HSLhsl(285, 63%, 37%)
HSVhsv(285, 77%, 60%)
CMYKcmyk(19.6%, 77.1%, 0%, 40%)
CIE-LABlab(33.38, 54.44, -46.23)
CIE-LCHlch(33.38, 71.42, 319.66°)
OKLaboklab(45% 0.1337 -0.1303)
OKLCHoklch(45% 0.187 315.7)
XYZxyz(14.5183, 7.7135, 30.8549)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2399 #419923
analogous
#402399 #7B2399 #99237C
triadic
#7B2399 #997B23 #23997B
tetradic
#7B2399 #994023 #419923 #237C99
square
#7B2399 #994023 #419923 #237C99
split-complementary
#7B2399 #7C9923 #239940
monochromatic
#2B0C35 #531867 #7B2399 #A32ECB #BA5DDA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B2399#FFFFFF#000000##FFFFFF
##7B23991.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)
#00499C
Deuteranopia (green-blind)
#205196
Tritanopia (blue-blind)
#793D5D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b2399;
/* rgb */ color: rgb(123, 35, 153);
/* oklch */ color: oklch(45.0% 0.187 315.7);
Tailwind
colors: {
  custom: {
    50: '#a568b8',
    500: '#7b2399',
    950: '#000000',
  },
}
SCSS
$custom: #7b2399;
$custom-light: #a568b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2399",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 284.746,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44995,
    "c": 0.18673,
    "h": 315.7
  },
  "luminance": 0.07713
}

Semantic roles & 50–950 ramp

primary
#7B2399
secondary
#73BE59
accent
#E6426C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2399

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

Preview Lab → · Contrast checker → · Palette generator →

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