#7B197B#7B197B

#7B197B is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.171 H 328.1°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#7B197B
RGBrgb(123, 25, 123)
HSLhsl(300, 66%, 29%)
HSVhsv(300, 80%, 48%)
CMYKcmyk(0%, 79.7%, 0%, 51.8%)
CIE-LABlab(30.25, 52.12, -32.65)
CIE-LCHlch(30.25, 61.50, 327.94°)
OKLaboklab(42.14% 0.1455 -0.0906)
OKLCHoklch(42.14% 0.171 328.1)
XYZxyz(12.0910, 6.3372, 19.3214)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B197B #197B19
analogous
#4A197B #7B197B #7B194A
triadic
#7B197B #7B7B19 #197B7B
tetradic
#7B197B #7B4A19 #197B19 #194A7B
square
#7B197B #7B4A19 #197B19 #194A7B
split-complementary
#7B197B #4A7B19 #197B4A
monochromatic
#190519 #480F48 #7B197B #AE23AE #D738D7

Accessibility & contrast

On white

9.26
#7B197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7B197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B197B
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B197B#FFFFFF#000000##FFFFFF
##7B197B1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#354C79
Tritanopia (blue-blind)
#7F2A4A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b197b;
/* rgb */ color: rgb(123, 25, 123);
/* oklch */ color: oklch(42.1% 0.171 328.1);
Tailwind
colors: {
  custom: {
    50: '#a563a1',
    500: '#7b197b',
    950: '#000000',
  },
}
SCSS
$custom: #7b197b;
$custom-light: #a563a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b197b",
  "rgb": {
    "r": 123,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 300,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42143,
    "c": 0.17137,
    "h": 328.1
  },
  "luminance": 0.06336
}

Semantic roles & 50–950 ramp

primary
#7B197B
secondary
#40AF40
accent
#E93F3F
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B197B

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

Preview Lab → · Contrast checker → · Palette generator →

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