#7D25A6#7D25A6

#7D25A6 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.4% C 0.197 H 312.1°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7D25A6
RGBrgb(125, 37, 166)
HSLhsl(281, 64%, 40%)
HSVhsv(281, 78%, 65%)
CMYKcmyk(24.7%, 77.7%, 0%, 34.9%)
CIE-LABlab(34.88, 56.79, -51.66)
CIE-LCHlch(34.88, 76.77, 317.70°)
OKLaboklab(46.41% 0.1323 -0.1462)
OKLCHoklch(46.41% 0.197 312.1)
XYZxyz(16.0007, 8.4367, 36.8546)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D25A6 #4EA625
analogous
#3C25A6 #7D25A6 #A6258F
triadic
#7D25A6 #A67D25 #25A67D
tetradic
#7D25A6 #A63C25 #4EA625 #258FA6
square
#7D25A6 #A63C25 #4EA625 #258FA6
split-complementary
#7D25A6 #8FA625 #25A63C
monochromatic
#320F42 #571A74 #7D25A6 #A136D2 #B868DD

Accessibility & contrast

On white

7.81
#7D25A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7D25A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D25A6
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D25A6#FFFFFF#000000##FFFFFF
##7D25A61.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#0E54A3
Tritanopia (blue-blind)
#784465
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d25a6;
/* rgb */ color: rgb(125, 37, 166);
/* oklch */ color: oklch(46.4% 0.197 312.1);
Tailwind
colors: {
  custom: {
    50: '#a76ac1',
    500: '#7d25a6',
    950: '#000000',
  },
}
SCSS
$custom: #7d25a6;
$custom-light: #a76ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d25a6",
  "rgb": {
    "r": 125,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 280.93,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46411,
    "c": 0.19723,
    "h": 312.1
  },
  "luminance": 0.08436
}

Semantic roles & 50–950 ramp

primary
#7D25A6
secondary
#82C364
accent
#E74176
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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