#7B198E#7B198E

#7B198E is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.187 H 320.3°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#7B198E
RGBrgb(123, 25, 142)
HSLhsl(290, 70%, 33%)
HSVhsv(290, 82%, 56%)
CMYKcmyk(13.4%, 82.4%, 0%, 44.3%)
CIE-LABlab(31.49, 55.54, -42.53)
CIE-LCHlch(31.49, 69.95, 322.55°)
OKLaboklab(43.42% 0.1438 -0.1194)
OKLCHoklch(43.42% 0.187 320.3)
XYZxyz(13.3979, 6.8599, 26.2043)
Luminance0.0686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B198E #2C8E19
analogous
#40198E #7B198E #8E1967
triadic
#7B198E #8E7B19 #198E7B
tetradic
#7B198E #8E4019 #2C8E19 #19678E
square
#7B198E #8E4019 #2C8E19 #19678E
split-complementary
#7B198E #678E19 #198E40
monochromatic
#210726 #4E105A #7B198E #A822C2 #C543DE

Accessibility & contrast

On white

8.85
#7B198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7B198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B198E
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B198E#FFFFFF#000000##FFFFFF
##7B198E1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#264D8B
Tritanopia (blue-blind)
#7B3355
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b198e;
/* rgb */ color: rgb(123, 25, 142);
/* oklch */ color: oklch(43.4% 0.187 320.3);
Tailwind
colors: {
  custom: {
    50: '#a564b0',
    500: '#7b198e',
    950: '#000000',
  },
}
SCSS
$custom: #7b198e;
$custom-light: #a564b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b198e",
  "rgb": {
    "r": 123,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 290.256,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43416,
    "c": 0.1869,
    "h": 320.3
  },
  "luminance": 0.06859
}

Semantic roles & 50–950 ramp

primary
#7B198E
secondary
#58BF44
accent
#ED3B58
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B198E

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

Preview Lab → · Contrast checker → · Palette generator →

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