#7C26AB#7C26AB

#7C26AB is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.7% C 0.201 H 310.1°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7C26AB
RGBrgb(124, 38, 171)
HSLhsl(279, 64%, 41%)
HSVhsv(279, 78%, 67%)
CMYKcmyk(27.5%, 77.8%, 0%, 32.9%)
CIE-LABlab(35.23, 57.30, -54.10)
CIE-LCHlch(35.23, 78.81, 316.64°)
OKLaboklab(46.74% 0.1291 -0.1535)
OKLCHoklch(46.74% 0.201 310.1)
XYZxyz(16.3545, 8.6119, 39.3209)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C26AB #55AB26
analogous
#3926AB #7C26AB #AB2697
triadic
#7C26AB #AB7C26 #26AB7C
tetradic
#7C26AB #AB3926 #55AB26 #2697AB
square
#7C26AB #AB3926 #55AB26 #2697AB
split-complementary
#7C26AB #97AB26 #26AB39
monochromatic
#331047 #581B79 #7C26AB #9D3BD3 #B66DDF

Accessibility & contrast

On white

7.71
#7C26AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7C26AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C26AB
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C26AB#FFFFFF#000000##FFFFFF
##7C26AB1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#754768
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c26ab;
/* rgb */ color: rgb(124, 38, 171);
/* oklch */ color: oklch(46.7% 0.201 310.1);
Tailwind
colors: {
  custom: {
    50: '#a76ac5',
    500: '#7c26ab',
    950: '#000000',
  },
}
SCSS
$custom: #7c26ab;
$custom-light: #a76ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c26ab",
  "rgb": {
    "r": 124,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 278.797,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46743,
    "c": 0.20055,
    "h": 310.1
  },
  "luminance": 0.08612
}

Semantic roles & 50–950 ramp

primary
#7C26AB
secondary
#89C568
accent
#E7417C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C26AB

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

Preview Lab → · Contrast checker → · Palette generator →

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