#7D2198#7D2198

#7D2198 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.189 H 317.1°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7D2198
RGBrgb(125, 33, 152)
HSLhsl(286, 64%, 36%)
HSVhsv(286, 78%, 60%)
CMYKcmyk(17.8%, 78.3%, 0%, 40.4%)
CIE-LABlab(33.38, 55.34, -45.60)
CIE-LCHlch(33.38, 71.70, 320.51°)
OKLaboklab(45.04% 0.1382 -0.1284)
OKLCHoklch(45.04% 0.189 317.1)
XYZxyz(14.6680, 7.7153, 30.4162)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2198 #3C9821
analogous
#422198 #7D2198 #982178
triadic
#7D2198 #987D21 #21987D
tetradic
#7D2198 #984221 #3C9821 #217898
square
#7D2198 #984221 #3C9821 #217898
split-complementary
#7D2198 #789821 #219842
monochromatic
#2A0B33 #541666 #7D2198 #A62CCA #BD59DB

Accessibility & contrast

On white

8.26
#7D2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7D2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2198
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2198#FFFFFF#000000##FFFFFF
##7D21981.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#235195
Tritanopia (blue-blind)
#7C3B5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d2198;
/* rgb */ color: rgb(125, 33, 152);
/* oklch */ color: oklch(45.0% 0.189 317.1);
Tailwind
colors: {
  custom: {
    50: '#a767b7',
    500: '#7d2198',
    950: '#000000',
  },
}
SCSS
$custom: #7d2198;
$custom-light: #a767b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2198",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 286.387,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45039,
    "c": 0.18866,
    "h": 317.1
  },
  "luminance": 0.07715
}

Semantic roles & 50–950 ramp

primary
#7D2198
secondary
#6EBF56
accent
#E74066
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2198

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

Preview Lab → · Contrast checker → · Palette generator →

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