#7C26B1#7C26B1

#7C26B1 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.2% C 0.206 H 308.3°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7C26B1
RGBrgb(124, 38, 177)
HSLhsl(277, 65%, 42%)
HSVhsv(277, 79%, 69%)
CMYKcmyk(29.9%, 78.5%, 0%, 30.6%)
CIE-LABlab(35.69, 58.59, -56.94)
CIE-LCHlch(35.69, 81.70, 315.82°)
OKLaboklab(47.21% 0.1278 -0.1618)
OKLCHoklch(47.21% 0.206 308.3)
XYZxyz(16.9394, 8.8459, 42.4015)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C26B1 #5BB126
analogous
#3626B1 #7C26B1 #B126A1
triadic
#7C26B1 #B17C26 #26B17C
tetradic
#7C26B1 #B13626 #5BB126 #26A1B1
square
#7C26B1 #B13626 #5BB126 #26A1B1
split-complementary
#7C26B1 #A1B126 #26B136
monochromatic
#35104C #591B7F #7C26B1 #9C3FD6 #B671E0

Accessibility & contrast

On white

7.58
#7C26B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7C26B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C26B1
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C26B1#FFFFFF#000000##FFFFFF
##7C26B11.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B5
Deuteranopia (green-blind)
#0055AE
Tritanopia (blue-blind)
#73496B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c26b1;
/* rgb */ color: rgb(124, 38, 177);
/* oklch */ color: oklch(47.2% 0.206 308.3);
Tailwind
colors: {
  custom: {
    50: '#a76bc9',
    500: '#7c26b1',
    950: '#000000',
  },
}
SCSS
$custom: #7c26b1;
$custom-light: #a76bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c26b1",
  "rgb": {
    "r": 124,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 277.122,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4721,
    "c": 0.20617,
    "h": 308.3
  },
  "luminance": 0.08846
}

Semantic roles & 50–950 ramp

primary
#7C26B1
secondary
#8EC76B
accent
#E84080
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C26B1

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

Preview Lab → · Contrast checker → · Palette generator →

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