#7C26B2#7C26B2

#7C26B2 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.3% C 0.207 H 308.0°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7C26B2
RGBrgb(124, 38, 178)
HSLhsl(277, 65%, 42%)
HSVhsv(277, 79%, 70%)
CMYKcmyk(30.3%, 78.7%, 0%, 30.2%)
CIE-LABlab(35.76, 58.81, -57.41)
CIE-LCHlch(35.76, 82.18, 315.69°)
OKLaboklab(47.29% 0.1276 -0.1632)
OKLCHoklch(47.29% 0.207 308)
XYZxyz(17.0395, 8.8859, 42.9284)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C26B2 #5CB226
analogous
#3626B2 #7C26B2 #B226A2
triadic
#7C26B2 #B27C26 #26B27C
tetradic
#7C26B2 #B23626 #5CB226 #26A2B2
square
#7C26B2 #B23626 #5CB226 #26A2B2
split-complementary
#7C26B2 #A2B226 #26B236
monochromatic
#36104D #591B80 #7C26B2 #9C3FD6 #B672E1

Accessibility & contrast

On white

7.56
#7C26B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7C26B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C26B2
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C26B2#FFFFFF#000000##FFFFFF
##7C26B21.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#734A6C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c26b2;
/* rgb */ color: rgb(124, 38, 178);
/* oklch */ color: oklch(47.3% 0.207 308.0);
Tailwind
colors: {
  custom: {
    50: '#a76bca',
    500: '#7c26b2',
    950: '#000000',
  },
}
SCSS
$custom: #7c26b2;
$custom-light: #a76bca;
$custom-dark: #000000;
JSON
{
  "hex": "#7c26b2",
  "rgb": {
    "r": 124,
    "g": 38,
    "b": 178
  },
  "hsl": {
    "h": 276.857,
    "s": 64.815,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47289,
    "c": 0.20711,
    "h": 308
  },
  "luminance": 0.08886
}

Semantic roles & 50–950 ramp

primary
#7C26B2
secondary
#8FC86C
accent
#E84081
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C26B2

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

Preview Lab → · Contrast checker → · Palette generator →

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