#7C26B4#7C26B4

#7C26B4 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.209 H 307.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7C26B4
RGBrgb(124, 38, 180)
HSLhsl(276, 65%, 43%)
HSVhsv(276, 79%, 71%)
CMYKcmyk(31.1%, 78.9%, 0%, 29.4%)
CIE-LABlab(35.92, 59.25, -58.34)
CIE-LCHlch(35.92, 83.15, 315.44°)
OKLaboklab(47.45% 0.1271 -0.1659)
OKLCHoklch(47.45% 0.209 307.5)
XYZxyz(17.2417, 8.9668, 43.9936)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C26B4 #5EB426
analogous
#3526B4 #7C26B4 #B426A5
triadic
#7C26B4 #B47C26 #26B47C
tetradic
#7C26B4 #B43526 #5EB426 #26A5B4
square
#7C26B4 #B43526 #5EB426 #26A5B4
split-complementary
#7C26B4 #A5B426 #26B435
monochromatic
#36114F #591B81 #7C26B4 #9B40D7 #B673E1

Accessibility & contrast

On white

7.52
#7C26B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7C26B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C26B4
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C26B4#FFFFFF#000000##FFFFFF
##7C26B41.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#734B6D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c26b4;
/* rgb */ color: rgb(124, 38, 180);
/* oklch */ color: oklch(47.4% 0.209 307.5);
Tailwind
colors: {
  custom: {
    50: '#a76bcb',
    500: '#7c26b4',
    950: '#000000',
  },
}
SCSS
$custom: #7c26b4;
$custom-light: #a76bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c26b4",
  "rgb": {
    "r": 124,
    "g": 38,
    "b": 180
  },
  "hsl": {
    "h": 276.338,
    "s": 65.138,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47447,
    "c": 0.20898,
    "h": 307.5
  },
  "luminance": 0.08967
}

Semantic roles & 50–950 ramp

primary
#7C26B4
secondary
#91C96D
accent
#E84082
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C26B4

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

Preview Lab → · Contrast checker → · Palette generator →

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