#7B26A8#7B26A8

#7B26A8 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.4% C 0.197 H 310.6°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#7B26A8
RGBrgb(123, 38, 168)
HSLhsl(279, 63%, 40%)
HSVhsv(279, 77%, 66%)
CMYKcmyk(26.8%, 77.4%, 0%, 34.1%)
CIE-LABlab(34.85, 56.47, -52.92)
CIE-LCHlch(34.85, 77.39, 316.86°)
OKLaboklab(46.38% 0.1284 -0.15)
OKLCHoklch(46.38% 0.197 310.6)
XYZxyz(15.9280, 8.4247, 37.8253)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B26A8 #53A826
analogous
#3A26A8 #7B26A8 #A82694
triadic
#7B26A8 #A87B26 #26A87B
tetradic
#7B26A8 #A83A26 #53A826 #2694A8
square
#7B26A8 #A83A26 #53A826 #2694A8
split-complementary
#7B26A8 #94A826 #26A83A
monochromatic
#320F44 #561B76 #7B26A8 #9D39D2 #B66BDE

Accessibility & contrast

On white

7.82
#7B26A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7B26A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B26A8
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B26A8#FFFFFF#000000##FFFFFF
##7B26A81.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAC
Deuteranopia (green-blind)
#0153A5
Tritanopia (blue-blind)
#754566
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b26a8;
/* rgb */ color: rgb(123, 38, 168);
/* oklch */ color: oklch(46.4% 0.197 310.6);
Tailwind
colors: {
  custom: {
    50: '#a66ac3',
    500: '#7b26a8',
    950: '#000000',
  },
}
SCSS
$custom: #7b26a8;
$custom-light: #a66ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b26a8",
  "rgb": {
    "r": 123,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 279.231,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46379,
    "c": 0.19744,
    "h": 310.6
  },
  "luminance": 0.08424
}

Semantic roles & 50–950 ramp

primary
#7B26A8
secondary
#86C466
accent
#E6427B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B26A8

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

Preview Lab → · Contrast checker → · Palette generator →

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