#7E25A8#7E25A8

#7E25A8 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.7% C 0.199 H 311.9°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7E25A8
RGBrgb(126, 37, 168)
HSLhsl(281, 64%, 40%)
HSVhsv(281, 78%, 66%)
CMYKcmyk(25%, 78%, 0%, 34.1%)
CIE-LABlab(35.18, 57.39, -52.37)
CIE-LCHlch(35.18, 77.70, 317.62°)
OKLaboklab(46.7% 0.1333 -0.1483)
OKLCHoklch(46.7% 0.199 311.9)
XYZxyz(16.3323, 8.5864, 37.8352)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E25A8 #4FA825
analogous
#3C25A8 #7E25A8 #A82591
triadic
#7E25A8 #A87E25 #25A87E
tetradic
#7E25A8 #A83C25 #4FA825 #2591A8
square
#7E25A8 #A83C25 #4FA825 #2591A8
split-complementary
#7E25A8 #91A825 #25A83C
monochromatic
#330F44 #581A76 #7E25A8 #A137D3 #B969DE

Accessibility & contrast

On white

7.73
#7E25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7E25A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E25A8
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E25A8#FFFFFF#000000##FFFFFF
##7E25A81.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0B54A5
Tritanopia (blue-blind)
#794566
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e25a8;
/* rgb */ color: rgb(126, 37, 168);
/* oklch */ color: oklch(46.7% 0.199 311.9);
Tailwind
colors: {
  custom: {
    50: '#a86ac3',
    500: '#7e25a8',
    950: '#000000',
  },
}
SCSS
$custom: #7e25a8;
$custom-light: #a86ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e25a8",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 280.763,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46698,
    "c": 0.19938,
    "h": 311.9
  },
  "luminance": 0.08586
}

Semantic roles & 50–950 ramp

primary
#7E25A8
secondary
#83C465
accent
#E74176
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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