#7B2196#7B2196

#7B2196 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.186 H 316.9°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#7B2196
RGBrgb(123, 33, 150)
HSLhsl(286, 64%, 36%)
HSVhsv(286, 78%, 59%)
CMYKcmyk(18%, 78%, 0%, 41.2%)
CIE-LABlab(32.92, 54.54, -45.14)
CIE-LCHlch(32.92, 70.80, 320.39°)
OKLaboklab(44.61% 0.136 -0.1271)
OKLCHoklch(44.61% 0.186 316.9)
XYZxyz(14.2164, 7.5013, 29.5473)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2196 #3C9621
analogous
#402196 #7B2196 #962176
triadic
#7B2196 #967B21 #21967B
tetradic
#7B2196 #964021 #3C9621 #217696
square
#7B2196 #964021 #3C9621 #217696
split-complementary
#7B2196 #769621 #219640
monochromatic
#290B32 #521664 #7B2196 #A42CC8 #BC57DA

Accessibility & contrast

On white

8.40
#7B2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7B2196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2196
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2196#FFFFFF#000000##FFFFFF
##7B21961.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#225093
Tritanopia (blue-blind)
#7A3B5B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b2196;
/* rgb */ color: rgb(123, 33, 150);
/* oklch */ color: oklch(44.6% 0.186 316.9);
Tailwind
colors: {
  custom: {
    50: '#a567b5',
    500: '#7b2196',
    950: '#000000',
  },
}
SCSS
$custom: #7b2196;
$custom-light: #a567b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2196",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 286.154,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44605,
    "c": 0.18614,
    "h": 316.9
  },
  "luminance": 0.07501
}

Semantic roles & 50–950 ramp

primary
#7B2196
secondary
#6DBE55
accent
#E74167
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2196

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

Preview Lab → · Contrast checker → · Palette generator →

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