#7E25A4#7E25A4

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

Color values

HEX#7E25A4
RGBrgb(126, 37, 164)
HSLhsl(282, 63%, 39%)
HSVhsv(282, 77%, 64%)
CMYKcmyk(23.2%, 77.4%, 0%, 35.7%)
CIE-LABlab(34.88, 56.56, -50.44)
CIE-LCHlch(34.88, 75.79, 318.27°)
OKLaboklab(46.4% 0.134 -0.1426)
OKLCHoklch(46.4% 0.196 313.2)
XYZxyz(15.9654, 8.4396, 35.9028)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E25A4 #4BA425
analogous
#3E25A4 #7E25A4 #A4258B
triadic
#7E25A4 #A47E25 #25A47E
tetradic
#7E25A4 #A43E25 #4BA425 #258BA4
square
#7E25A4 #A43E25 #4BA425 #258BA4
split-complementary
#7E25A4 #8BA425 #25A43E
monochromatic
#310E40 #581A72 #7E25A4 #A335D1 #B967DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E25A4#FFFFFF#000000##FFFFFF
##7E25A41.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)
#004EA7
Deuteranopia (green-blind)
#1654A1
Tritanopia (blue-blind)
#7A4364
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e25a4;
/* rgb */ color: rgb(126, 37, 164);
/* oklch */ color: oklch(46.4% 0.196 313.2);
Tailwind
colors: {
  custom: {
    50: '#a86ac0',
    500: '#7e25a4',
    950: '#000000',
  },
}
SCSS
$custom: #7e25a4;
$custom-light: #a86ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e25a4",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 164
  },
  "hsl": {
    "h": 282.047,
    "s": 63.184,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46399,
    "c": 0.19572,
    "h": 313.2
  },
  "luminance": 0.08439
}

Semantic roles & 50–950 ramp

primary
#7E25A4
secondary
#7FC262
accent
#E64273
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E25A4

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

Preview Lab → · Contrast checker → · Palette generator →

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