#7C26A5#7C26A5

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

Color values

HEX#7C26A5
RGBrgb(124, 38, 165)
HSLhsl(281, 63%, 40%)
HSVhsv(281, 77%, 65%)
CMYKcmyk(24.8%, 77%, 0%, 35.3%)
CIE-LABlab(34.78, 56.02, -51.23)
CIE-LCHlch(34.78, 75.91, 317.56°)
OKLaboklab(46.29% 0.1303 -0.145)
OKLCHoklch(46.29% 0.195 311.9)
XYZxyz(15.7956, 8.3884, 36.3771)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C26A5 #4FA526
analogous
#3D26A5 #7C26A5 #A5268F
triadic
#7C26A5 #A57C26 #26A57C
tetradic
#7C26A5 #A53D26 #4FA526 #268FA5
square
#7C26A5 #A53D26 #4FA526 #268FA5
split-complementary
#7C26A5 #8FA526 #26A53D
monochromatic
#310F42 #571B73 #7C26A5 #9F37D1 #B769DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C26A5#FFFFFF#000000##FFFFFF
##7C26A51.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)
#0F53A2
Tritanopia (blue-blind)
#774464
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c26a5;
/* rgb */ color: rgb(124, 38, 165);
/* oklch */ color: oklch(46.3% 0.195 311.9);
Tailwind
colors: {
  custom: {
    50: '#a66ac0',
    500: '#7c26a5',
    950: '#000000',
  },
}
SCSS
$custom: #7c26a5;
$custom-light: #a66ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c26a5",
  "rgb": {
    "r": 124,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 280.63,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46288,
    "c": 0.19495,
    "h": 311.9
  },
  "luminance": 0.08388
}

Semantic roles & 50–950 ramp

primary
#7C26A5
secondary
#83C364
accent
#E64277
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C26A5

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

Preview Lab → · Contrast checker → · Palette generator →

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