#7C26A4#7C26A4

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

Color values

HEX#7C26A4
RGBrgb(124, 38, 164)
HSLhsl(281, 62%, 40%)
HSVhsv(281, 77%, 64%)
CMYKcmyk(24.4%, 76.8%, 0%, 35.7%)
CIE-LABlab(34.71, 55.81, -50.74)
CIE-LCHlch(34.71, 75.43, 317.72°)
OKLaboklab(46.21% 0.1305 -0.1436)
OKLCHoklch(46.21% 0.194 312.3)
XYZxyz(15.7049, 8.3521, 35.8996)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C26A4 #4EA426
analogous
#3D26A4 #7C26A4 #A4268D
triadic
#7C26A4 #A47C26 #26A47C
tetradic
#7C26A4 #A43D26 #4EA426 #268DA4
square
#7C26A4 #A43D26 #4EA426 #268DA4
split-complementary
#7C26A4 #8DA426 #26A43D
monochromatic
#310F41 #561A72 #7C26A4 #A037D1 #B768DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C26A4#FFFFFF#000000##FFFFFF
##7C26A41.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)
#004DA7
Deuteranopia (green-blind)
#1253A1
Tritanopia (blue-blind)
#774464
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c26a4;
/* rgb */ color: rgb(124, 38, 164);
/* oklch */ color: oklch(46.2% 0.194 312.3);
Tailwind
colors: {
  custom: {
    50: '#a66ac0',
    500: '#7c26a4',
    950: '#000000',
  },
}
SCSS
$custom: #7c26a4;
$custom-light: #a66ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c26a4",
  "rgb": {
    "r": 124,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 280.952,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46213,
    "c": 0.19402,
    "h": 312.3
  },
  "luminance": 0.08352
}

Semantic roles & 50–950 ramp

primary
#7C26A4
secondary
#82C264
accent
#E54276
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C26A4

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

Preview Lab → · Contrast checker → · Palette generator →

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