#7C26A8#7C26A8

#7C26A8 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.5% C 0.198 H 311.0°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7C26A8
RGBrgb(124, 38, 168)
HSLhsl(280, 63%, 40%)
HSVhsv(280, 77%, 66%)
CMYKcmyk(26.2%, 77.4%, 0%, 34.1%)
CIE-LABlab(35.00, 56.66, -52.67)
CIE-LCHlch(35.00, 77.36, 317.09°)
OKLaboklab(46.51% 0.1297 -0.1492)
OKLCHoklch(46.51% 0.198 311)
XYZxyz(16.0718, 8.4989, 37.8320)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C26A8 #52A826
analogous
#3B26A8 #7C26A8 #A82693
triadic
#7C26A8 #A87C26 #26A87C
tetradic
#7C26A8 #A83B26 #52A826 #2693A8
square
#7C26A8 #A83B26 #52A826 #2693A8
split-complementary
#7C26A8 #93A826 #26A83B
monochromatic
#320F44 #571B76 #7C26A8 #9E39D2 #B76BDE

Accessibility & contrast

On white

7.78
#7C26A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7C26A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C26A8
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C26A8#FFFFFF#000000##FFFFFF
##7C26A81.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAC
Deuteranopia (green-blind)
#0554A5
Tritanopia (blue-blind)
#764566
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c26a8;
/* rgb */ color: rgb(124, 38, 168);
/* oklch */ color: oklch(46.5% 0.198 311.0);
Tailwind
colors: {
  custom: {
    50: '#a76ac3',
    500: '#7c26a8',
    950: '#000000',
  },
}
SCSS
$custom: #7c26a8;
$custom-light: #a76ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c26a8",
  "rgb": {
    "r": 124,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 279.692,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46514,
    "c": 0.19775,
    "h": 311
  },
  "luminance": 0.08498
}

Semantic roles & 50–950 ramp

primary
#7C26A8
secondary
#86C466
accent
#E64279
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C26A8

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

Preview Lab → · Contrast checker → · Palette generator →

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