#7D1EA8#7D1EA8

#7D1EA8 is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 46.0% C 0.206 H 312.0°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7D1EA8
RGBrgb(125, 30, 168)
HSLhsl(281, 70%, 39%)
HSVhsv(281, 82%, 66%)
CMYKcmyk(25.6%, 82.1%, 0%, 34.1%)
CIE-LABlab(34.22, 59.53, -53.93)
CIE-LCHlch(34.22, 80.32, 317.83°)
OKLaboklab(46% 0.1375 -0.1528)
OKLCHoklch(46% 0.206 312)
XYZxyz(15.9883, 8.1161, 37.7625)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1EA8 #49A81E
analogous
#381EA8 #7D1EA8 #A81E8E
triadic
#7D1EA8 #A87D1E #1EA87D
tetradic
#7D1EA8 #A8381E #49A81E #1E8EA8
square
#7D1EA8 #A8381E #49A81E #1E8EA8
split-complementary
#7D1EA8 #8EA81E #1EA838
monochromatic
#300B40 #561574 #7D1EA8 #A32AD9 #B95EE2

Accessibility & contrast

On white

8.01
#7D1EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7D1EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1EA8
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1EA8#FFFFFF#000000##FFFFFF
##7D1EA81.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#784265
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d1ea8;
/* rgb */ color: rgb(125, 30, 168);
/* oklch */ color: oklch(46.0% 0.206 312.0);
Tailwind
colors: {
  custom: {
    50: '#a867c3',
    500: '#7d1ea8',
    950: '#000000',
  },
}
SCSS
$custom: #7d1ea8;
$custom-light: #a867c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1ea8",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 281.304,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46,
    "c": 0.2056,
    "h": 312
  },
  "luminance": 0.08116
}

Semantic roles & 50–950 ramp

primary
#7D1EA8
secondary
#7DC75B
accent
#ED3B73
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D1EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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