#7B26B6#7B26B6

#7B26B6 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.5% C 0.211 H 306.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#7B26B6
RGBrgb(123, 38, 182)
HSLhsl(275, 65%, 43%)
HSVhsv(275, 79%, 71%)
CMYKcmyk(32.4%, 79.1%, 0%, 28.6%)
CIE-LABlab(35.94, 59.52, -59.51)
CIE-LCHlch(35.94, 84.16, 315.01°)
OKLaboklab(47.48% 0.1252 -0.1694)
OKLCHoklch(47.48% 0.211 306.5)
XYZxyz(17.3031, 8.9748, 45.0677)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B26B6 #61B626
analogous
#3326B6 #7B26B6 #B626A9
triadic
#7B26B6 #B67B26 #26B67B
tetradic
#7B26B6 #B63326 #61B626 #26A9B6
square
#7B26B6 #B63326 #61B626 #26A9B6
split-complementary
#7B26B6 #A9B626 #26B633
monochromatic
#371151 #591B83 #7B26B6 #9A42D7 #B574E2

Accessibility & contrast

On white

7.51
#7B26B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B26B6
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B26B6#FFFFFF#000000##FFFFFF
##7B26B61.007.512.797.51
#FFFFFF7.511.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#0055B3
Tritanopia (blue-blind)
#704C6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b26b6;
/* rgb */ color: rgb(123, 38, 182);
/* oklch */ color: oklch(47.5% 0.211 306.5);
Tailwind
colors: {
  custom: {
    50: '#a76bcd',
    500: '#7b26b6',
    950: '#000000',
  },
}
SCSS
$custom: #7b26b6;
$custom-light: #a76bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b26b6",
  "rgb": {
    "r": 123,
    "g": 38,
    "b": 182
  },
  "hsl": {
    "h": 275.417,
    "s": 65.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47478,
    "c": 0.21063,
    "h": 306.5
  },
  "luminance": 0.08975
}

Semantic roles & 50–950 ramp

primary
#7B26B6
secondary
#94C96E
accent
#E83F85
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7B26B6

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

Preview Lab → · Contrast checker → · Palette generator →

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