#7B197F#7B197F

#7B197F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.175 H 326.3°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#7B197F
RGBrgb(123, 25, 127)
HSLhsl(298, 67%, 30%)
HSVhsv(298, 80%, 50%)
CMYKcmyk(3.1%, 80.3%, 0%, 50.2%)
CIE-LABlab(30.50, 52.81, -34.78)
CIE-LCHlch(30.50, 63.24, 326.64°)
OKLaboklab(42.4% 0.1453 -0.0967)
OKLCHoklch(42.4% 0.175 326.3)
XYZxyz(12.3465, 6.4394, 20.6672)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B197F #1D7F19
analogous
#48197F #7B197F #7F1950
triadic
#7B197F #7F7B19 #197F7B
tetradic
#7B197F #7F4819 #1D7F19 #19507F
square
#7B197F #7F4819 #1D7F19 #19507F
split-complementary
#7B197F #507F19 #197F48
monochromatic
#19051A #490F4C #7B197F #AD23B2 #D23AD8

Accessibility & contrast

On white

9.18
#7B197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7B197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B197F
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B197F#FFFFFF#000000##FFFFFF
##7B197F1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#334C7D
Tritanopia (blue-blind)
#7E2C4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b197f;
/* rgb */ color: rgb(123, 25, 127);
/* oklch */ color: oklch(42.4% 0.175 326.3);
Tailwind
colors: {
  custom: {
    50: '#a563a4',
    500: '#7b197f',
    950: '#000000',
  },
}
SCSS
$custom: #7b197f;
$custom-light: #a563a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b197f",
  "rgb": {
    "r": 123,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 297.647,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42398,
    "c": 0.17457,
    "h": 326.3
  },
  "luminance": 0.06439
}

Semantic roles & 50–950 ramp

primary
#7B197F
secondary
#45B341
accent
#EA3E45
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B197F

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

Preview Lab → · Contrast checker → · Palette generator →

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