#7F25A5#7F25A5

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

Color values

HEX#7F25A5
RGBrgb(127, 37, 165)
HSLhsl(282, 63%, 40%)
HSVhsv(282, 78%, 65%)
CMYKcmyk(23%, 77.6%, 0%, 35.3%)
CIE-LABlab(35.11, 56.96, -50.67)
CIE-LCHlch(35.11, 76.24, 318.34°)
OKLaboklab(46.61% 0.1352 -0.1433)
OKLCHoklch(46.61% 0.197 313.3)
XYZxyz(16.2043, 8.5523, 36.3872)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F25A5 #4BA525
analogous
#3F25A5 #7F25A5 #A5258B
triadic
#7F25A5 #A57F25 #25A57F
tetradic
#7F25A5 #A53F25 #4BA525 #258BA5
square
#7F25A5 #A53F25 #4BA525 #258BA5
split-complementary
#7F25A5 #8BA525 #25A53F
monochromatic
#320F41 #591A73 #7F25A5 #A335D2 #BA67DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F25A5#FFFFFF#000000##FFFFFF
##7F25A51.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)
#004EA8
Deuteranopia (green-blind)
#1654A2
Tritanopia (blue-blind)
#7B4364
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f25a5;
/* rgb */ color: rgb(127, 37, 165);
/* oklch */ color: oklch(46.6% 0.197 313.3);
Tailwind
colors: {
  custom: {
    50: '#a86ac0',
    500: '#7f25a5',
    950: '#000000',
  },
}
SCSS
$custom: #7f25a5;
$custom-light: #a86ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f25a5",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 165
  },
  "hsl": {
    "h": 282.188,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46612,
    "c": 0.19696,
    "h": 313.3
  },
  "luminance": 0.08552
}

Semantic roles & 50–950 ramp

primary
#7F25A5
secondary
#7FC363
accent
#E64172
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F25A5

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

Preview Lab → · Contrast checker → · Palette generator →

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