#7E25A5#7E25A5

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

Color values

HEX#7E25A5
RGBrgb(126, 37, 165)
HSLhsl(282, 63%, 40%)
HSVhsv(282, 78%, 65%)
CMYKcmyk(23.6%, 77.6%, 0%, 35.3%)
CIE-LABlab(34.95, 56.77, -50.93)
CIE-LCHlch(34.95, 76.26, 318.10°)
OKLaboklab(46.47% 0.1338 -0.144)
OKLCHoklch(46.47% 0.197 312.9)
XYZxyz(16.0561, 8.4759, 36.3802)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E25A5 #4CA525
analogous
#3E25A5 #7E25A5 #A5258C
triadic
#7E25A5 #A57E25 #25A57E
tetradic
#7E25A5 #A53E25 #4CA525 #258CA5
square
#7E25A5 #A53E25 #4CA525 #258CA5
split-complementary
#7E25A5 #8CA525 #25A53E
monochromatic
#320F41 #581A73 #7E25A5 #A235D2 #B967DD

Accessibility & contrast

On white

7.79
#7E25A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E25A5
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E25A5#FFFFFF#000000##FFFFFF
##7E25A51.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#1454A2
Tritanopia (blue-blind)
#7A4364
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e25a5;
/* rgb */ color: rgb(126, 37, 165);
/* oklch */ color: oklch(46.5% 0.197 312.9);
Tailwind
colors: {
  custom: {
    50: '#a86ac0',
    500: '#7e25a5',
    950: '#000000',
  },
}
SCSS
$custom: #7e25a5;
$custom-light: #a86ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e25a5",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 165
  },
  "hsl": {
    "h": 281.719,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46474,
    "c": 0.19663,
    "h": 312.9
  },
  "luminance": 0.08475
}

Semantic roles & 50–950 ramp

primary
#7E25A5
secondary
#80C363
accent
#E64174
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E25A5

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

Preview Lab → · Contrast checker → · Palette generator →

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