#7B197E#7B197E

#7B197E is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.174 H 326.8°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#7B197E
RGBrgb(123, 25, 126)
HSLhsl(298, 67%, 30%)
HSVhsv(298, 80%, 49%)
CMYKcmyk(2.4%, 80.2%, 0%, 50.6%)
CIE-LABlab(30.43, 52.64, -34.25)
CIE-LCHlch(30.43, 62.80, 326.95°)
OKLaboklab(42.33% 0.1454 -0.0952)
OKLCHoklch(42.33% 0.174 326.8)
XYZxyz(12.2817, 6.4134, 20.3257)
Luminance0.0641 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B197E #1C7E19
analogous
#49197E #7B197E #7E194F
triadic
#7B197E #7E7B19 #197E7B
tetradic
#7B197E #7E4919 #1C7E19 #194F7E
square
#7B197E #7E4919 #1C7E19 #194F7E
split-complementary
#7B197E #4F7E19 #197E49
monochromatic
#19051A #490F4B #7B197E #AD23B1 #D33AD8

Accessibility & contrast

On white

9.20
#7B197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7B197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B197E
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B197E#FFFFFF#000000##FFFFFF
##7B197E1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#334C7C
Tritanopia (blue-blind)
#7F2B4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b197e;
/* rgb */ color: rgb(123, 25, 126);
/* oklch */ color: oklch(42.3% 0.174 326.8);
Tailwind
colors: {
  custom: {
    50: '#a563a4',
    500: '#7b197e',
    950: '#000000',
  },
}
SCSS
$custom: #7b197e;
$custom-light: #a563a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b197e",
  "rgb": {
    "r": 123,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 298.218,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42334,
    "c": 0.17377,
    "h": 326.8
  },
  "luminance": 0.06413
}

Semantic roles & 50–950 ramp

primary
#7B197E
secondary
#44B241
accent
#EA3E43
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B197E

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

Preview Lab → · Contrast checker → · Palette generator →

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