#7D1EA6#7D1EA6

#7D1EA6 is a mid, highly saturated purple. Relative luminance 0.080; OKLCH L 45.8% C 0.204 H 312.6°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#7D1EA6
RGBrgb(125, 30, 166)
HSLhsl(282, 69%, 38%)
HSVhsv(282, 82%, 65%)
CMYKcmyk(24.7%, 81.9%, 0%, 34.9%)
CIE-LABlab(34.07, 59.12, -52.97)
CIE-LCHlch(34.07, 79.38, 318.14°)
OKLaboklab(45.85% 0.138 -0.15)
OKLCHoklch(45.85% 0.204 312.6)
XYZxyz(15.8034, 8.0422, 36.7888)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1EA6 #47A61E
analogous
#391EA6 #7D1EA6 #A61E8B
triadic
#7D1EA6 #A67D1E #1EA67D
tetradic
#7D1EA6 #A6391E #47A61E #1E8BA6
square
#7D1EA6 #A6391E #47A61E #1E8BA6
split-complementary
#7D1EA6 #8BA61E #1EA639
monochromatic
#2F0B3E #561572 #7D1EA6 #A329D8 #BA5DE2

Accessibility & contrast

On white

8.05
#7D1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7D1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1EA6
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1EA6#FFFFFF#000000##FFFFFF
##7D1EA61.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0052A3
Tritanopia (blue-blind)
#784163
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d1ea6;
/* rgb */ color: rgb(125, 30, 166);
/* oklch */ color: oklch(45.8% 0.204 312.6);
Tailwind
colors: {
  custom: {
    50: '#a767c1',
    500: '#7d1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #7d1ea6;
$custom-light: #a767c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1ea6",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 281.912,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45845,
    "c": 0.20384,
    "h": 312.6
  },
  "luminance": 0.08042
}

Semantic roles & 50–950 ramp

primary
#7D1EA6
secondary
#7AC65A
accent
#EC3C71
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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