#7F25A8#7F25A8

#7F25A8 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.200 H 312.4°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7F25A8
RGBrgb(127, 37, 168)
HSLhsl(281, 64%, 40%)
HSVhsv(281, 78%, 66%)
CMYKcmyk(24.4%, 78%, 0%, 34.1%)
CIE-LABlab(35.33, 57.58, -52.12)
CIE-LCHlch(35.33, 77.67, 317.85°)
OKLaboklab(46.84% 0.1346 -0.1475)
OKLCHoklch(46.84% 0.2 312.4)
XYZxyz(16.4806, 8.6628, 37.8421)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F25A8 #4EA825
analogous
#3D25A8 #7F25A8 #A82590
triadic
#7F25A8 #A87F25 #25A87F
tetradic
#7F25A8 #A83D25 #4EA825 #2590A8
square
#7F25A8 #A83D25 #4EA825 #2590A8
split-complementary
#7F25A8 #90A825 #25A83D
monochromatic
#330F44 #591A76 #7F25A8 #A237D3 #BA69DE

Accessibility & contrast

On white

7.69
#7F25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7F25A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F25A8
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F25A8#FFFFFF#000000##FFFFFF
##7F25A81.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0F55A5
Tritanopia (blue-blind)
#7A4466
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f25a8;
/* rgb */ color: rgb(127, 37, 168);
/* oklch */ color: oklch(46.8% 0.200 312.4);
Tailwind
colors: {
  custom: {
    50: '#a96ac3',
    500: '#7f25a8',
    950: '#000000',
  },
}
SCSS
$custom: #7f25a8;
$custom-light: #a96ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f25a8",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 281.221,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46836,
    "c": 0.1997,
    "h": 312.4
  },
  "luminance": 0.08662
}

Semantic roles & 50–950 ramp

primary
#7F25A8
secondary
#83C465
accent
#E74175
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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