#7B2397#7B2397

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

Color values

HEX#7B2397
RGBrgb(123, 35, 151)
HSLhsl(286, 62%, 36%)
HSVhsv(286, 77%, 59%)
CMYKcmyk(18.5%, 76.8%, 0%, 40.8%)
CIE-LABlab(33.24, 54.03, -45.24)
CIE-LCHlch(33.24, 70.47, 320.06°)
OKLaboklab(44.85% 0.134 -0.1274)
OKLCHoklch(44.85% 0.185 316.4)
XYZxyz(14.3545, 7.6480, 29.9922)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2397 #3F9723
analogous
#412397 #7B2397 #972379
triadic
#7B2397 #977B23 #23977B
tetradic
#7B2397 #974123 #3F9723 #237997
square
#7B2397 #974123 #3F9723 #237997
split-complementary
#7B2397 #799723 #239741
monochromatic
#2A0C34 #531765 #7B2397 #A32FC9 #BB5BD9

Accessibility & contrast

On white

8.30
#7B2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7B2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2397
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2397#FFFFFF#000000##FFFFFF
##7B23971.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b2397;
/* rgb */ color: rgb(123, 35, 151);
/* oklch */ color: oklch(44.9% 0.185 316.4);
Tailwind
colors: {
  custom: {
    50: '#a568b6',
    500: '#7b2397',
    950: '#000000',
  },
}
SCSS
$custom: #7b2397;
$custom-light: #a568b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2397",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 285.517,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44852,
    "c": 0.18492,
    "h": 316.4
  },
  "luminance": 0.07647
}

Semantic roles & 50–950 ramp

primary
#7B2397
secondary
#71BE58
accent
#E5426A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2397

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

Preview Lab → · Contrast checker → · Palette generator →

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