#7E25A7#7E25A7

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

Color values

HEX#7E25A7
RGBrgb(126, 37, 167)
HSLhsl(281, 64%, 40%)
HSVhsv(281, 78%, 65%)
CMYKcmyk(24.6%, 77.8%, 0%, 34.5%)
CIE-LABlab(35.10, 57.18, -51.89)
CIE-LCHlch(35.10, 77.22, 317.78°)
OKLaboklab(46.62% 0.1335 -0.1469)
OKLCHoklch(46.62% 0.198 312.3)
XYZxyz(16.2395, 8.5492, 37.3464)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E25A7 #4EA725
analogous
#3D25A7 #7E25A7 #A7258F
triadic
#7E25A7 #A77E25 #25A77E
tetradic
#7E25A7 #A73D25 #4EA725 #258FA7
square
#7E25A7 #A73D25 #4EA725 #258FA7
split-complementary
#7E25A7 #8FA725 #25A73D
monochromatic
#320F43 #581A75 #7E25A7 #A137D3 #B969DE

Accessibility & contrast

On white

7.75
#7E25A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E25A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E25A7
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E25A7#FFFFFF#000000##FFFFFF
##7E25A71.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#0E54A4
Tritanopia (blue-blind)
#794465
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e25a7;
/* rgb */ color: rgb(126, 37, 167);
/* oklch */ color: oklch(46.6% 0.198 312.3);
Tailwind
colors: {
  custom: {
    50: '#a86ac2',
    500: '#7e25a7',
    950: '#000000',
  },
}
SCSS
$custom: #7e25a7;
$custom-light: #a86ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e25a7",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 167
  },
  "hsl": {
    "h": 281.077,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.46623,
    "c": 0.19846,
    "h": 312.3
  },
  "luminance": 0.08549
}

Semantic roles & 50–950 ramp

primary
#7E25A7
secondary
#82C464
accent
#E74175
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E25A7

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

Preview Lab → · Contrast checker → · Palette generator →

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