#7D198E#7D198E

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

Color values

HEX#7D198E
RGBrgb(125, 25, 142)
HSLhsl(291, 70%, 33%)
HSVhsv(291, 82%, 56%)
CMYKcmyk(12%, 82.4%, 0%, 44.3%)
CIE-LABlab(31.83, 55.92, -41.96)
CIE-LCHlch(31.83, 69.92, 323.12°)
OKLaboklab(43.72% 0.1462 -0.1177)
OKLCHoklch(43.72% 0.188 321.2)
XYZxyz(13.6870, 7.0090, 26.2179)
Luminance0.0701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D198E #2A8E19
analogous
#42198E #7D198E #8E1964
triadic
#7D198E #8E7D19 #198E7D
tetradic
#7D198E #8E4219 #2A8E19 #19648E
square
#7D198E #8E4219 #2A8E19 #19648E
split-complementary
#7D198E #648E19 #198E42
monochromatic
#210726 #4F105A #7D198E #AB22C2 #C843DE

Accessibility & contrast

On white

8.74
#7D198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D198E
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D198E#FFFFFF#000000##FFFFFF
##7D198E1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#294E8B
Tritanopia (blue-blind)
#7E3355
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d198e;
/* rgb */ color: rgb(125, 25, 142);
/* oklch */ color: oklch(43.7% 0.188 321.2);
Tailwind
colors: {
  custom: {
    50: '#a764b0',
    500: '#7d198e',
    950: '#000000',
  },
}
SCSS
$custom: #7d198e;
$custom-light: #a764b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d198e",
  "rgb": {
    "r": 125,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 291.282,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43723,
    "c": 0.18768,
    "h": 321.2
  },
  "luminance": 0.07008
}

Semantic roles & 50–950 ramp

primary
#7D198E
secondary
#56BF44
accent
#ED3B55
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D198E

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

Preview Lab → · Contrast checker → · Palette generator →

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