#7D3198#7D3198

#7D3198 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.169 H 315.9°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7D3198
RGBrgb(125, 49, 152)
HSLhsl(284, 51%, 39%)
HSVhsv(284, 68%, 60%)
CMYKcmyk(17.8%, 67.8%, 0%, 40.4%)
CIE-LABlab(35.64, 48.93, -41.96)
CIE-LCHlch(35.64, 64.46, 319.38°)
OKLaboklab(46.65% 0.1218 -0.1179)
OKLCHoklch(46.65% 0.169 315.9)
XYZxyz(15.2224, 8.8242, 30.6011)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D3198 #4C9831
analogous
#4A3198 #7D3198 #983180
triadic
#7D3198 #987D31 #31987D
tetradic
#7D3198 #984A31 #4C9831 #318098
square
#7D3198 #984A31 #4C9831 #318098
split-complementary
#7D3198 #809831 #31984A
monochromatic
#31133B #57226A #7D3198 #A144C3 #B872D2

Accessibility & contrast

On white

7.60
#7D3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7D3198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D3198
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D3198#FFFFFF#000000##FFFFFF
##7D31981.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#315696
Tritanopia (blue-blind)
#7B4560
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7d3198;
/* rgb */ color: rgb(125, 49, 152);
/* oklch */ color: oklch(46.7% 0.169 315.9);
Tailwind
colors: {
  custom: {
    50: '#a66fb7',
    500: '#7d3198',
    950: '#000000',
  },
}
SCSS
$custom: #7d3198;
$custom-light: #a66fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d3198",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 284.272,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4665,
    "c": 0.16947,
    "h": 315.9
  },
  "luminance": 0.08824
}

Semantic roles & 50–950 ramp

primary
#7D3198
secondary
#80B96B
accent
#DB4D72
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7D3198

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

Preview Lab → · Contrast checker → · Palette generator →

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