#7B26C5#7B26C5

#7B26C5 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.7% C 0.225 H 302.6°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7B26C5
RGBrgb(123, 38, 197)
HSLhsl(272, 68%, 46%)
HSVhsv(272, 81%, 77%)
CMYKcmyk(37.6%, 80.7%, 0%, 22.7%)
CIE-LABlab(37.17, 62.86, -66.32)
CIE-LCHlch(37.17, 91.38, 313.47°)
OKLaboklab(48.72% 0.1211 -0.1894)
OKLCHoklch(48.72% 0.225 302.6)
XYZxyz(18.9371, 9.6284, 53.6733)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B26C5 #70C526
analogous
#2B26C5 #7B26C5 #C526BF
triadic
#7B26C5 #C57B26 #26C57B
tetradic
#7B26C5 #C52B26 #70C526 #26BFC5
square
#7B26C5 #C52B26 #70C526 #26BFC5
split-complementary
#7B26C5 #BFC526 #26C52B
monochromatic
#3B125E #5B1C92 #7B26C5 #994CDC #B67FE6

Accessibility & contrast

On white

7.18
#7B26C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7B26C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B26C5
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B26C5#FFFFFF#000000##FFFFFF
##7B26C51.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#0057C2
Tritanopia (blue-blind)
#6B5277
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b26c5;
/* rgb */ color: rgb(123, 38, 197);
/* oklch */ color: oklch(48.7% 0.225 302.6);
Tailwind
colors: {
  custom: {
    50: '#a86cd8',
    500: '#7b26c5',
    950: '#000000',
  },
}
SCSS
$custom: #7b26c5;
$custom-light: #a86cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b26c5",
  "rgb": {
    "r": 123,
    "g": 38,
    "b": 197
  },
  "hsl": {
    "h": 272.075,
    "s": 67.66,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48717,
    "c": 0.2248,
    "h": 302.6
  },
  "luminance": 0.09628
}

Semantic roles & 50–950 ramp

primary
#7B26C5
secondary
#A0CF78
accent
#EB3D8E
background
#FAF6FD
surface
#F5ECFA
border
#CFC7D3
text
#110715
muted
#807A83

Preview Lab

Preview with #7B26C5

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

Preview Lab → · Contrast checker → · Palette generator →

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