#7B198D#7B198D

#7B198D is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.3% C 0.186 H 320.7°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#7B198D
RGBrgb(123, 25, 141)
HSLhsl(291, 70%, 33%)
HSVhsv(291, 82%, 55%)
CMYKcmyk(12.8%, 82.3%, 0%, 44.7%)
CIE-LABlab(31.42, 55.35, -42.02)
CIE-LCHlch(31.42, 69.50, 322.79°)
OKLaboklab(43.35% 0.1439 -0.1179)
OKLCHoklch(43.35% 0.186 320.7)
XYZxyz(13.3232, 6.8300, 25.8107)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B198D #2B8D19
analogous
#41198D #7B198D #8D1965
triadic
#7B198D #8D7B19 #198D7B
tetradic
#7B198D #8D4119 #2B8D19 #19658D
square
#7B198D #8D4119 #2B8D19 #19658D
split-complementary
#7B198D #658D19 #198D41
monochromatic
#200725 #4E1059 #7B198D #A822C1 #C643DE

Accessibility & contrast

On white

8.88
#7B198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B198D
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B198D#FFFFFF#000000##FFFFFF
##7B198D1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#274D8A
Tritanopia (blue-blind)
#7C3354
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b198d;
/* rgb */ color: rgb(123, 25, 141);
/* oklch */ color: oklch(43.3% 0.186 320.7);
Tailwind
colors: {
  custom: {
    50: '#a564af',
    500: '#7b198d',
    950: '#000000',
  },
}
SCSS
$custom: #7b198d;
$custom-light: #a564af;
$custom-dark: #000000;
JSON
{
  "hex": "#7b198d",
  "rgb": {
    "r": 123,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 290.69,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43345,
    "c": 0.18606,
    "h": 320.7
  },
  "luminance": 0.06829
}

Semantic roles & 50–950 ramp

primary
#7B198D
secondary
#56BF43
accent
#ED3B57
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B198D

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

Preview Lab → · Contrast checker → · Palette generator →

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