#7D26A2#7D26A2

#7D26A2 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.192 H 313.4°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7D26A2
RGBrgb(125, 38, 162)
HSLhsl(282, 62%, 39%)
HSVhsv(282, 77%, 64%)
CMYKcmyk(22.8%, 76.5%, 0%, 36.5%)
CIE-LABlab(34.71, 55.58, -49.52)
CIE-LCHlch(34.71, 74.44, 318.30°)
OKLaboklab(46.2% 0.1322 -0.14)
OKLCHoklch(46.2% 0.192 313.4)
XYZxyz(15.6710, 8.3553, 34.9627)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D26A2 #4BA226
analogous
#3F26A2 #7D26A2 #A22689
triadic
#7D26A2 #A27D26 #26A27D
tetradic
#7D26A2 #A23F26 #4BA226 #2689A2
square
#7D26A2 #A23F26 #4BA226 #2689A2
split-complementary
#7D26A2 #89A226 #26A23F
monochromatic
#310F3F #571A70 #7D26A2 #A235D0 #B967DB

Accessibility & contrast

On white

7.86
#7D26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7D26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D26A2
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D26A2#FFFFFF#000000##FFFFFF
##7D26A21.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#19549F
Tritanopia (blue-blind)
#794263
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d26a2;
/* rgb */ color: rgb(125, 38, 162);
/* oklch */ color: oklch(46.2% 0.192 313.4);
Tailwind
colors: {
  custom: {
    50: '#a76abe',
    500: '#7d26a2',
    950: '#000000',
  },
}
SCSS
$custom: #7d26a2;
$custom-light: #a76abe;
$custom-dark: #000000;
JSON
{
  "hex": "#7d26a2",
  "rgb": {
    "r": 125,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 282.097,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46203,
    "c": 0.19249,
    "h": 313.4
  },
  "luminance": 0.08355
}

Semantic roles & 50–950 ramp

primary
#7D26A2
secondary
#7FC163
accent
#E54373
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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