#7F25A9#7F25A9

#7F25A9 is a mid, highly saturated purple. Relative luminance 0.087; OKLCH L 46.9% C 0.201 H 312.1°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7F25A9
RGBrgb(127, 37, 169)
HSLhsl(281, 64%, 40%)
HSVhsv(281, 78%, 66%)
CMYKcmyk(24.9%, 78.1%, 0%, 33.7%)
CIE-LABlab(35.40, 57.79, -52.60)
CIE-LCHlch(35.40, 78.14, 317.69°)
OKLaboklab(46.91% 0.1344 -0.1489)
OKLCHoklch(46.91% 0.201 312.1)
XYZxyz(16.5741, 8.7002, 38.3346)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F25A9 #4FA925
analogous
#3D25A9 #7F25A9 #A92591
triadic
#7F25A9 #A97F25 #25A97F
tetradic
#7F25A9 #A93D25 #4FA925 #2591A9
square
#7F25A9 #A93D25 #4FA925 #2591A9
split-complementary
#7F25A9 #91A925 #25A93D
monochromatic
#340F45 #591A77 #7F25A9 #A238D3 #B96ADE

Accessibility & contrast

On white

7.66
#7F25A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7F25A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F25A9
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F25A9#FFFFFF#000000##FFFFFF
##7F25A91.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAD
Deuteranopia (green-blind)
#0B55A6
Tritanopia (blue-blind)
#7A4567
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f25a9;
/* rgb */ color: rgb(127, 37, 169);
/* oklch */ color: oklch(46.9% 0.201 312.1);
Tailwind
colors: {
  custom: {
    50: '#a96ac3',
    500: '#7f25a9',
    950: '#000000',
  },
}
SCSS
$custom: #7f25a9;
$custom-light: #a96ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f25a9",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 169
  },
  "hsl": {
    "h": 280.909,
    "s": 64.078,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46911,
    "c": 0.20061,
    "h": 312.1
  },
  "luminance": 0.087
}

Semantic roles & 50–950 ramp

primary
#7F25A9
secondary
#84C465
accent
#E74176
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F25A9

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

Preview Lab → · Contrast checker → · Palette generator →

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