#7C26A2#7C26A2

#7C26A2 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.192 H 312.9°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7C26A2
RGBrgb(124, 38, 162)
HSLhsl(282, 62%, 39%)
HSVhsv(282, 77%, 64%)
CMYKcmyk(23.5%, 76.5%, 0%, 36.5%)
CIE-LABlab(34.56, 55.39, -49.77)
CIE-LCHlch(34.56, 74.47, 318.06°)
OKLaboklab(46.07% 0.1308 -0.1407)
OKLCHoklch(46.07% 0.192 312.9)
XYZxyz(15.5257, 8.2804, 34.9558)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C26A2 #4CA226
analogous
#3E26A2 #7C26A2 #A2268A
triadic
#7C26A2 #A27C26 #26A27C
tetradic
#7C26A2 #A23E26 #4CA226 #268AA2
square
#7C26A2 #A23E26 #4CA226 #268AA2
split-complementary
#7C26A2 #8AA226 #26A23E
monochromatic
#300F3F #561A70 #7C26A2 #A035D0 #B867DB

Accessibility & contrast

On white

7.91
#7C26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7C26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C26A2
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C26A2#FFFFFF#000000##FFFFFF
##7C26A21.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#17539F
Tritanopia (blue-blind)
#784363
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c26a2;
/* rgb */ color: rgb(124, 38, 162);
/* oklch */ color: oklch(46.1% 0.192 312.9);
Tailwind
colors: {
  custom: {
    50: '#a66abe',
    500: '#7c26a2',
    950: '#000000',
  },
}
SCSS
$custom: #7c26a2;
$custom-light: #a66abe;
$custom-dark: #000000;
JSON
{
  "hex": "#7c26a2",
  "rgb": {
    "r": 124,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 281.613,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46065,
    "c": 0.19215,
    "h": 312.9
  },
  "luminance": 0.0828
}

Semantic roles & 50–950 ramp

primary
#7C26A2
secondary
#80C163
accent
#E54374
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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