#7F25A7#7F25A7

#7F25A7 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.8% C 0.199 H 312.7°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7F25A7
RGBrgb(127, 37, 167)
HSLhsl(282, 64%, 40%)
HSVhsv(282, 78%, 65%)
CMYKcmyk(24%, 77.8%, 0%, 34.5%)
CIE-LABlab(35.25, 57.37, -51.64)
CIE-LCHlch(35.25, 77.19, 318.01°)
OKLaboklab(46.76% 0.1348 -0.1461)
OKLCHoklch(46.76% 0.199 312.7)
XYZxyz(16.3878, 8.6257, 37.3534)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F25A7 #4DA725
analogous
#3E25A7 #7F25A7 #A7258E
triadic
#7F25A7 #A77F25 #25A77F
tetradic
#7F25A7 #A73E25 #4DA725 #258EA7
square
#7F25A7 #A73E25 #4DA725 #258EA7
split-complementary
#7F25A7 #8EA725 #25A73E
monochromatic
#330F43 #591A75 #7F25A7 #A337D3 #BA69DE

Accessibility & contrast

On white

7.71
#7F25A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7F25A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F25A7
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F25A7#FFFFFF#000000##FFFFFF
##7F25A71.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#1155A4
Tritanopia (blue-blind)
#7A4465
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f25a7;
/* rgb */ color: rgb(127, 37, 167);
/* oklch */ color: oklch(46.8% 0.199 312.7);
Tailwind
colors: {
  custom: {
    50: '#a96ac2',
    500: '#7f25a7',
    950: '#000000',
  },
}
SCSS
$custom: #7f25a7;
$custom-light: #a96ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f25a7",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 167
  },
  "hsl": {
    "h": 281.538,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.46761,
    "c": 0.19879,
    "h": 312.7
  },
  "luminance": 0.08625
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F25A7

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

Preview Lab → · Contrast checker → · Palette generator →

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