#7D198F#7D198F

#7D198F is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.8% C 0.189 H 320.8°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#7D198F
RGBrgb(125, 25, 143)
HSLhsl(291, 70%, 33%)
HSVhsv(291, 83%, 56%)
CMYKcmyk(12.6%, 82.5%, 0%, 43.9%)
CIE-LABlab(31.90, 56.11, -42.47)
CIE-LCHlch(31.90, 70.37, 322.88°)
OKLaboklab(43.79% 0.1461 -0.1192)
OKLCHoklch(43.79% 0.189 320.8)
XYZxyz(13.7624, 7.0392, 26.6151)
Luminance0.0704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D198F #2B8F19
analogous
#42198F #7D198F #8F1966
triadic
#7D198F #8F7D19 #198F7D
tetradic
#7D198F #8F4219 #2B8F19 #19668F
square
#7D198F #8F4219 #2B8F19 #19668F
split-complementary
#7D198F #668F19 #198F42
monochromatic
#220727 #4F105B #7D198F #AB22C3 #C744DE

Accessibility & contrast

On white

8.72
#7D198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7D198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D198F
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D198F#FFFFFF#000000##FFFFFF
##7D198F1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#284E8C
Tritanopia (blue-blind)
#7E3355
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d198f;
/* rgb */ color: rgb(125, 25, 143);
/* oklch */ color: oklch(43.8% 0.189 320.8);
Tailwind
colors: {
  custom: {
    50: '#a764b0',
    500: '#7d198f',
    950: '#000000',
  },
}
SCSS
$custom: #7d198f;
$custom-light: #a764b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d198f",
  "rgb": {
    "r": 125,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 290.847,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43793,
    "c": 0.18851,
    "h": 320.8
  },
  "luminance": 0.07038
}

Semantic roles & 50–950 ramp

primary
#7D198F
secondary
#57BF44
accent
#ED3B56
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7D198F

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

Preview Lab → · Contrast checker → · Palette generator →

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