#7F25A4#7F25A4

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

Color values

HEX#7F25A4
RGBrgb(127, 37, 164)
HSLhsl(283, 63%, 39%)
HSVhsv(283, 77%, 64%)
CMYKcmyk(22.6%, 77.4%, 0%, 35.7%)
CIE-LABlab(35.04, 56.75, -50.19)
CIE-LCHlch(35.04, 75.76, 318.51°)
OKLaboklab(46.54% 0.1353 -0.1418)
OKLCHoklch(46.54% 0.196 313.7)
XYZxyz(16.1136, 8.5160, 35.9097)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F25A4 #4AA425
analogous
#4025A4 #7F25A4 #A4258A
triadic
#7F25A4 #A47F25 #25A47F
tetradic
#7F25A4 #A44025 #4AA425 #258AA4
square
#7F25A4 #A44025 #4AA425 #258AA4
split-complementary
#7F25A4 #8AA425 #25A440
monochromatic
#320E40 #581A72 #7F25A4 #A435D1 #BA67DD

Accessibility & contrast

On white

7.77
#7F25A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F25A4
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F25A4#FFFFFF#000000##FFFFFF
##7F25A41.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#1854A1
Tritanopia (blue-blind)
#7B4364
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f25a4;
/* rgb */ color: rgb(127, 37, 164);
/* oklch */ color: oklch(46.5% 0.196 313.7);
Tailwind
colors: {
  custom: {
    50: '#a86ac0',
    500: '#7f25a4',
    950: '#000000',
  },
}
SCSS
$custom: #7f25a4;
$custom-light: #a86ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f25a4",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 164
  },
  "hsl": {
    "h": 282.52,
    "s": 63.184,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46538,
    "c": 0.19604,
    "h": 313.7
  },
  "luminance": 0.08515
}

Semantic roles & 50–950 ramp

primary
#7F25A4
secondary
#7EC262
accent
#E64272
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F25A4

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

Preview Lab → · Contrast checker → · Palette generator →

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