#7B26A4#7B26A4

#7B26A4 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.194 H 311.8°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7B26A4
RGBrgb(123, 38, 164)
HSLhsl(280, 62%, 40%)
HSVhsv(280, 77%, 64%)
CMYKcmyk(25%, 76.8%, 0%, 35.7%)
CIE-LABlab(34.56, 55.62, -51.00)
CIE-LCHlch(34.56, 75.46, 317.48°)
OKLaboklab(46.08% 0.1291 -0.1444)
OKLCHoklch(46.08% 0.194 311.8)
XYZxyz(15.5611, 8.2779, 35.8928)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B26A4 #4FA426
analogous
#3C26A4 #7B26A4 #A4268E
triadic
#7B26A4 #A47B26 #26A47B
tetradic
#7B26A4 #A43C26 #4FA426 #268EA4
square
#7B26A4 #A43C26 #4FA426 #268EA4
split-complementary
#7B26A4 #8EA426 #26A43C
monochromatic
#300F41 #561A72 #7B26A4 #9E37D1 #B668DC

Accessibility & contrast

On white

7.91
#7B26A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7B26A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B26A4
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B26A4#FFFFFF#000000##FFFFFF
##7B26A41.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#0F53A1
Tritanopia (blue-blind)
#764464
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b26a4;
/* rgb */ color: rgb(123, 38, 164);
/* oklch */ color: oklch(46.1% 0.194 311.8);
Tailwind
colors: {
  custom: {
    50: '#a66ac0',
    500: '#7b26a4',
    950: '#000000',
  },
}
SCSS
$custom: #7b26a4;
$custom-light: #a66ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b26a4",
  "rgb": {
    "r": 123,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 280.476,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46076,
    "c": 0.1937,
    "h": 311.8
  },
  "luminance": 0.08278
}

Semantic roles & 50–950 ramp

primary
#7B26A4
secondary
#82C264
accent
#E54277
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B26A4

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

Preview Lab → · Contrast checker → · Palette generator →

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