#7D198B#7D198B

#7D198B is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.5% C 0.185 H 322.3°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7D198B
RGBrgb(125, 25, 139)
HSLhsl(293, 70%, 32%)
HSVhsv(293, 82%, 55%)
CMYKcmyk(10.1%, 82%, 0%, 45.5%)
CIE-LABlab(31.62, 55.37, -40.44)
CIE-LCHlch(31.62, 68.56, 323.86°)
OKLaboklab(43.52% 0.1466 -0.1132)
OKLCHoklch(43.52% 0.185 322.3)
XYZxyz(13.4648, 6.9201, 25.0476)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D198B #278B19
analogous
#44198B #7D198B #8B1960
triadic
#7D198B #8B7D19 #198B7D
tetradic
#7D198B #8B4419 #278B19 #19608B
square
#7D198B #8B4419 #278B19 #19608B
split-complementary
#7D198B #608B19 #198B44
monochromatic
#200623 #4E1057 #7D198B #AC22BF #CA41DD

Accessibility & contrast

On white

8.81
#7D198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7D198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D198B
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D198B#FFFFFF#000000##FFFFFF
##7D198B1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#2C4E88
Tritanopia (blue-blind)
#7F3153
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d198b;
/* rgb */ color: rgb(125, 25, 139);
/* oklch */ color: oklch(43.5% 0.185 322.3);
Tailwind
colors: {
  custom: {
    50: '#a664ad',
    500: '#7d198b',
    950: '#000000',
  },
}
SCSS
$custom: #7d198b;
$custom-light: #a664ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d198b",
  "rgb": {
    "r": 125,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 292.632,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43515,
    "c": 0.18521,
    "h": 322.3
  },
  "luminance": 0.06919
}

Semantic roles & 50–950 ramp

primary
#7D198B
secondary
#51BE42
accent
#EC3B51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D198B

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

Preview Lab → · Contrast checker → · Palette generator →

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