#7B196D#7B196D

#7B196D is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.3% C 0.161 H 334.8°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#7B196D
RGBrgb(123, 25, 109)
HSLhsl(309, 66%, 29%)
HSVhsv(309, 80%, 48%)
CMYKcmyk(0%, 79.7%, 11.4%, 51.8%)
CIE-LABlab(29.44, 49.82, -25.02)
CIE-LCHlch(29.44, 55.75, 333.33°)
OKLaboklab(41.31% 0.1453 -0.0685)
OKLCHoklch(41.31% 0.161 334.8)
XYZxyz(11.2765, 6.0114, 15.0314)
Luminance0.0601 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B196D #197B27
analogous
#58197B #7B196D #7B193C
triadic
#7B196D #6D7B19 #196D7B
tetradic
#7B196D #7B5819 #197B27 #193C7B
square
#7B196D #7B5819 #197B27 #193C7B
split-complementary
#7B196D #3C7B19 #197B58
monochromatic
#190517 #480F40 #7B196D #AE239A #D738C0

Accessibility & contrast

On white

9.54
#7B196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7B196D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B196D
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B196D#FFFFFF#000000##FFFFFF
##7B196D1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183C6F
Deuteranopia (green-blind)
#3D4A6B
Tritanopia (blue-blind)
#812242
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b196d;
/* rgb */ color: rgb(123, 25, 109);
/* oklch */ color: oklch(41.3% 0.161 334.8);
Tailwind
colors: {
  custom: {
    50: '#a56297',
    500: '#7b196d',
    950: '#000000',
  },
}
SCSS
$custom: #7b196d;
$custom-light: #a56297;
$custom-dark: #000000;
JSON
{
  "hex": "#7b196d",
  "rgb": {
    "r": 123,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 308.571,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41306,
    "c": 0.16059,
    "h": 334.8
  },
  "luminance": 0.0601
}

Semantic roles & 50–950 ramp

primary
#7B196D
secondary
#40AF50
accent
#E9573F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B196D

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

Preview Lab → · Contrast checker → · Palette generator →

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