#7D198D#7D198D

#7D198D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.7% C 0.187 H 321.5°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#7D198D
RGBrgb(125, 25, 141)
HSLhsl(292, 70%, 33%)
HSVhsv(292, 82%, 55%)
CMYKcmyk(11.3%, 82.3%, 0%, 44.7%)
CIE-LABlab(31.76, 55.74, -41.46)
CIE-LCHlch(31.76, 69.47, 323.36°)
OKLaboklab(43.65% 0.1463 -0.1162)
OKLCHoklch(43.65% 0.187 321.5)
XYZxyz(13.6123, 6.9791, 25.8242)
Luminance0.0698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D198D #298D19
analogous
#43198D #7D198D #8D1963
triadic
#7D198D #8D7D19 #198D7D
tetradic
#7D198D #8D4319 #298D19 #19638D
square
#7D198D #8D4319 #298D19 #19638D
split-complementary
#7D198D #638D19 #198D43
monochromatic
#210725 #4F1059 #7D198D #AB22C1 #C843DE

Accessibility & contrast

On white

8.77
#7D198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7D198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D198D
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D198D#FFFFFF#000000##FFFFFF
##7D198D1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#2A4E8A
Tritanopia (blue-blind)
#7E3254
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d198d;
/* rgb */ color: rgb(125, 25, 141);
/* oklch */ color: oklch(43.7% 0.187 321.5);
Tailwind
colors: {
  custom: {
    50: '#a764af',
    500: '#7d198d',
    950: '#000000',
  },
}
SCSS
$custom: #7d198d;
$custom-light: #a764af;
$custom-dark: #000000;
JSON
{
  "hex": "#7d198d",
  "rgb": {
    "r": 125,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 291.724,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43653,
    "c": 0.18685,
    "h": 321.5
  },
  "luminance": 0.06978
}

Semantic roles & 50–950 ramp

primary
#7D198D
secondary
#54BF43
accent
#ED3B54
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D198D

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

Preview Lab → · Contrast checker → · Palette generator →

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