#7B2198#7B2198

#7B2198 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.188 H 316.2°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7B2198
RGBrgb(123, 33, 152)
HSLhsl(285, 64%, 36%)
HSVhsv(285, 78%, 60%)
CMYKcmyk(19.1%, 78.3%, 0%, 40.4%)
CIE-LABlab(33.06, 54.94, -46.13)
CIE-LCHlch(33.06, 71.74, 319.98°)
OKLaboklab(44.75% 0.1357 -0.13)
OKLCHoklch(44.75% 0.188 316.2)
XYZxyz(14.3788, 7.5663, 30.4027)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2198 #3E9821
analogous
#402198 #7B2198 #98217A
triadic
#7B2198 #987B21 #21987B
tetradic
#7B2198 #984021 #3E9821 #217A98
square
#7B2198 #984021 #3E9821 #217A98
split-complementary
#7B2198 #7A9821 #219840
monochromatic
#2A0B33 #521666 #7B2198 #A42CCA #BB59DB

Accessibility & contrast

On white

8.36
#7B2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2198
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2198#FFFFFF#000000##FFFFFF
##7B21981.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b2198;
/* rgb */ color: rgb(123, 33, 152);
/* oklch */ color: oklch(44.8% 0.188 316.2);
Tailwind
colors: {
  custom: {
    50: '#a567b7',
    500: '#7b2198',
    950: '#000000',
  },
}
SCSS
$custom: #7b2198;
$custom-light: #a567b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2198",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 285.378,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4475,
    "c": 0.18792,
    "h": 316.2
  },
  "luminance": 0.07566
}

Semantic roles & 50–950 ramp

primary
#7B2198
secondary
#6FBF56
accent
#E74069
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2198

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

Preview Lab → · Contrast checker → · Palette generator →

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