#7D26A5#7D26A5

#7D26A5 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.195 H 312.4°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7D26A5
RGBrgb(125, 38, 165)
HSLhsl(281, 63%, 40%)
HSVhsv(281, 77%, 65%)
CMYKcmyk(24.2%, 77%, 0%, 35.3%)
CIE-LABlab(34.93, 56.21, -50.98)
CIE-LCHlch(34.93, 75.88, 317.80°)
OKLaboklab(46.43% 0.1316 -0.1442)
OKLCHoklch(46.43% 0.195 312.4)
XYZxyz(15.9409, 8.4633, 36.3839)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D26A5 #4EA526
analogous
#3D26A5 #7D26A5 #A5268E
triadic
#7D26A5 #A57D26 #26A57D
tetradic
#7D26A5 #A53D26 #4EA526 #268EA5
square
#7D26A5 #A53D26 #4EA526 #268EA5
split-complementary
#7D26A5 #8EA526 #26A53D
monochromatic
#320F42 #571B73 #7D26A5 #A137D1 #B869DC

Accessibility & contrast

On white

7.80
#7D26A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D26A5
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D26A5#FFFFFF#000000##FFFFFF
##7D26A51.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d26a5;
/* rgb */ color: rgb(125, 38, 165);
/* oklch */ color: oklch(46.4% 0.195 312.4);
Tailwind
colors: {
  custom: {
    50: '#a76ac0',
    500: '#7d26a5',
    950: '#000000',
  },
}
SCSS
$custom: #7d26a5;
$custom-light: #a76ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d26a5",
  "rgb": {
    "r": 125,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 281.102,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46425,
    "c": 0.19527,
    "h": 312.4
  },
  "luminance": 0.08463
}

Semantic roles & 50–950 ramp

primary
#7D26A5
secondary
#82C364
accent
#E64276
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D26A5

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

Preview Lab → · Contrast checker → · Palette generator →

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