#7D25A5#7D25A5

#7D25A5 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.196 H 312.5°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#7D25A5
RGBrgb(125, 37, 165)
HSLhsl(281, 63%, 40%)
HSVhsv(281, 78%, 65%)
CMYKcmyk(24.2%, 77.6%, 0%, 35.3%)
CIE-LABlab(34.80, 56.58, -51.18)
CIE-LCHlch(34.80, 76.29, 317.87°)
OKLaboklab(46.34% 0.1325 -0.1448)
OKLCHoklch(46.34% 0.196 312.5)
XYZxyz(15.9093, 8.4002, 36.3733)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D25A5 #4DA525
analogous
#3D25A5 #7D25A5 #A5258D
triadic
#7D25A5 #A57D25 #25A57D
tetradic
#7D25A5 #A53D25 #4DA525 #258DA5
square
#7D25A5 #A53D25 #4DA525 #258DA5
split-complementary
#7D25A5 #8DA525 #25A53D
monochromatic
#310F41 #571A73 #7D25A5 #A135D2 #B867DD

Accessibility & contrast

On white

7.84
#7D25A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7D25A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D25A5
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D25A5#FFFFFF#000000##FFFFFF
##7D25A51.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#1154A2
Tritanopia (blue-blind)
#784364
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d25a5;
/* rgb */ color: rgb(125, 37, 165);
/* oklch */ color: oklch(46.3% 0.196 312.5);
Tailwind
colors: {
  custom: {
    50: '#a76ac0',
    500: '#7d25a5',
    950: '#000000',
  },
}
SCSS
$custom: #7d25a5;
$custom-light: #a76ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d25a5",
  "rgb": {
    "r": 125,
    "g": 37,
    "b": 165
  },
  "hsl": {
    "h": 281.25,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46336,
    "c": 0.19631,
    "h": 312.5
  },
  "luminance": 0.084
}

Semantic roles & 50–950 ramp

primary
#7D25A5
secondary
#81C363
accent
#E64175
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D25A5

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

Preview Lab → · Contrast checker → · Palette generator →

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