#7F25A2#7F25A2

#7F25A2 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.4% C 0.194 H 314.3°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7F25A2
RGBrgb(127, 37, 162)
HSLhsl(283, 63%, 39%)
HSVhsv(283, 77%, 64%)
CMYKcmyk(21.6%, 77.2%, 0%, 36.5%)
CIE-LABlab(34.89, 56.34, -49.22)
CIE-LCHlch(34.89, 74.81, 318.86°)
OKLaboklab(46.39% 0.1357 -0.139)
OKLCHoklch(46.39% 0.194 314.3)
XYZxyz(15.9344, 8.4444, 34.9660)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F25A2 #48A225
analogous
#4125A2 #7F25A2 #A22587
triadic
#7F25A2 #A27F25 #25A27F
tetradic
#7F25A2 #A24125 #48A225 #2587A2
square
#7F25A2 #A24125 #48A225 #2587A2
split-complementary
#7F25A2 #87A225 #25A241
monochromatic
#310E3E #581A70 #7F25A2 #A534D1 #BB65DC

Accessibility & contrast

On white

7.81
#7F25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7F25A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F25A2
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F25A2#FFFFFF#000000##FFFFFF
##7F25A21.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#1C549F
Tritanopia (blue-blind)
#7C4263
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f25a2;
/* rgb */ color: rgb(127, 37, 162);
/* oklch */ color: oklch(46.4% 0.194 314.3);
Tailwind
colors: {
  custom: {
    50: '#a86abe',
    500: '#7f25a2',
    950: '#000000',
  },
}
SCSS
$custom: #7f25a2;
$custom-light: #a86abe;
$custom-dark: #000000;
JSON
{
  "hex": "#7f25a2",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 283.2,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46392,
    "c": 0.19422,
    "h": 314.3
  },
  "luminance": 0.08444
}

Semantic roles & 50–950 ramp

primary
#7F25A2
secondary
#7CC261
accent
#E64270
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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