#7B26B5#7B26B5

#7B26B5 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.4% C 0.210 H 306.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7B26B5
RGBrgb(123, 38, 181)
HSLhsl(276, 65%, 43%)
HSVhsv(276, 79%, 71%)
CMYKcmyk(32%, 79%, 0%, 29%)
CIE-LABlab(35.86, 59.30, -59.04)
CIE-LCHlch(35.86, 83.68, 315.12°)
OKLaboklab(47.4% 0.1255 -0.168)
OKLCHoklch(47.4% 0.21 306.8)
XYZxyz(17.2002, 8.9336, 44.5253)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B26B5 #60B526
analogous
#3326B5 #7B26B5 #B526A8
triadic
#7B26B5 #B57B26 #26B57B
tetradic
#7B26B5 #B53326 #60B526 #26A8B5
square
#7B26B5 #B53326 #60B526 #26A8B5
split-complementary
#7B26B5 #A8B526 #26B533
monochromatic
#361150 #591B82 #7B26B5 #9A41D7 #B574E2

Accessibility & contrast

On white

7.54
#7B26B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7B26B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B26B5
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B26B5#FFFFFF#000000##FFFFFF
##7B26B51.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#0055B2
Tritanopia (blue-blind)
#714B6E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b26b5;
/* rgb */ color: rgb(123, 38, 181);
/* oklch */ color: oklch(47.4% 0.210 306.8);
Tailwind
colors: {
  custom: {
    50: '#a76bcc',
    500: '#7b26b5',
    950: '#000000',
  },
}
SCSS
$custom: #7b26b5;
$custom-light: #a76bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b26b5",
  "rgb": {
    "r": 123,
    "g": 38,
    "b": 181
  },
  "hsl": {
    "h": 275.664,
    "s": 65.297,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47397,
    "c": 0.20968,
    "h": 306.8
  },
  "luminance": 0.08933
}

Semantic roles & 50–950 ramp

primary
#7B26B5
secondary
#93C96E
accent
#E84084
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B26B5

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

Preview Lab → · Contrast checker → · Palette generator →

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