#7B2197#7B2197

#7B2197 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.187 H 316.6°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#7B2197
RGBrgb(123, 33, 151)
HSLhsl(286, 64%, 36%)
HSVhsv(286, 78%, 59%)
CMYKcmyk(18.5%, 78.1%, 0%, 40.8%)
CIE-LABlab(32.99, 54.74, -45.63)
CIE-LCHlch(32.99, 71.27, 320.18°)
OKLaboklab(44.68% 0.1358 -0.1286)
OKLCHoklch(44.68% 0.187 316.6)
XYZxyz(14.2973, 7.5336, 29.9732)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2197 #3D9721
analogous
#402197 #7B2197 #972178
triadic
#7B2197 #977B21 #21977B
tetradic
#7B2197 #974021 #3D9721 #217897
square
#7B2197 #974021 #3D9721 #217897
split-complementary
#7B2197 #789721 #219740
monochromatic
#290B33 #521665 #7B2197 #A42CC9 #BC58DA

Accessibility & contrast

On white

8.38
#7B2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7B2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2197
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2197#FFFFFF#000000##FFFFFF
##7B21971.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#215094
Tritanopia (blue-blind)
#793B5B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b2197;
/* rgb */ color: rgb(123, 33, 151);
/* oklch */ color: oklch(44.7% 0.187 316.6);
Tailwind
colors: {
  custom: {
    50: '#a567b6',
    500: '#7b2197',
    950: '#000000',
  },
}
SCSS
$custom: #7b2197;
$custom-light: #a567b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2197",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 285.763,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44677,
    "c": 0.18703,
    "h": 316.6
  },
  "luminance": 0.07533
}

Semantic roles & 50–950 ramp

primary
#7B2197
secondary
#6EBE55
accent
#E74168
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2197

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

Preview Lab → · Contrast checker → · Palette generator →

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