#7E25A6#7E25A6

#7E25A6 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.5% C 0.198 H 312.6°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7E25A6
RGBrgb(126, 37, 166)
HSLhsl(281, 64%, 40%)
HSVhsv(281, 78%, 65%)
CMYKcmyk(24.1%, 77.7%, 0%, 34.9%)
CIE-LABlab(35.03, 56.97, -51.41)
CIE-LCHlch(35.03, 76.74, 317.94°)
OKLaboklab(46.55% 0.1337 -0.1455)
OKLCHoklch(46.55% 0.198 312.6)
XYZxyz(16.1474, 8.5124, 36.8615)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E25A6 #4DA625
analogous
#3D25A6 #7E25A6 #A6258E
triadic
#7E25A6 #A67E25 #25A67E
tetradic
#7E25A6 #A63D25 #4DA625 #258EA6
square
#7E25A6 #A63D25 #4DA625 #258EA6
split-complementary
#7E25A6 #8EA625 #25A63D
monochromatic
#320F42 #581A74 #7E25A6 #A236D2 #B968DD

Accessibility & contrast

On white

7.77
#7E25A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7E25A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E25A6
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E25A6#FFFFFF#000000##FFFFFF
##7E25A61.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#1154A3
Tritanopia (blue-blind)
#794465
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e25a6;
/* rgb */ color: rgb(126, 37, 166);
/* oklch */ color: oklch(46.5% 0.198 312.6);
Tailwind
colors: {
  custom: {
    50: '#a86ac1',
    500: '#7e25a6',
    950: '#000000',
  },
}
SCSS
$custom: #7e25a6;
$custom-light: #a86ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e25a6",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 281.395,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46548,
    "c": 0.19754,
    "h": 312.6
  },
  "luminance": 0.08512
}

Semantic roles & 50–950 ramp

primary
#7E25A6
secondary
#81C364
accent
#E74174
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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