#7B2199#7B2199

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

Color values

HEX#7B2199
RGBrgb(123, 33, 153)
HSLhsl(285, 65%, 36%)
HSVhsv(285, 78%, 60%)
CMYKcmyk(19.6%, 78.4%, 0%, 40%)
CIE-LABlab(33.13, 55.14, -46.63)
CIE-LCHlch(33.13, 72.21, 319.78°)
OKLaboklab(44.82% 0.1355 -0.1315)
OKLCHoklch(44.82% 0.189 315.9)
XYZxyz(14.4611, 7.5991, 30.8358)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2199 #3F9921
analogous
#3F2199 #7B2199 #99217B
triadic
#7B2199 #997B21 #21997B
tetradic
#7B2199 #993F21 #3F9921 #217B99
square
#7B2199 #993F21 #3F9921 #217B99
split-complementary
#7B2199 #7B9921 #21993F
monochromatic
#2A0B34 #531667 #7B2199 #A32CCB #BB59DB

Accessibility & contrast

On white

8.33
#7B2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7B2199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2199
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2199#FFFFFF#000000##FFFFFF
##7B21991.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#1E5096
Tritanopia (blue-blind)
#793C5D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b2199;
/* rgb */ color: rgb(123, 33, 153);
/* oklch */ color: oklch(44.8% 0.189 315.9);
Tailwind
colors: {
  custom: {
    50: '#a567b8',
    500: '#7b2199',
    950: '#000000',
  },
}
SCSS
$custom: #7b2199;
$custom-light: #a567b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2199",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 285,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44822,
    "c": 0.18881,
    "h": 315.9
  },
  "luminance": 0.07599
}

Semantic roles & 50–950 ramp

primary
#7B2199
secondary
#71BF56
accent
#E8406A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2199

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

Preview Lab → · Contrast checker → · Palette generator →

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