#7D26B1#7D26B1

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

Color values

HEX#7D26B1
RGBrgb(125, 38, 177)
HSLhsl(278, 65%, 42%)
HSVhsv(278, 79%, 69%)
CMYKcmyk(29.4%, 78.5%, 0%, 30.6%)
CIE-LABlab(35.83, 58.77, -56.69)
CIE-LCHlch(35.83, 81.66, 316.03°)
OKLaboklab(47.34% 0.1292 -0.161)
OKLCHoklch(47.34% 0.206 308.7)
XYZxyz(17.0847, 8.9208, 42.4083)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D26B1 #5AB126
analogous
#3826B1 #7D26B1 #B126A0
triadic
#7D26B1 #B17D26 #26B17D
tetradic
#7D26B1 #B13826 #5AB126 #26A0B1
square
#7D26B1 #B13826 #5AB126 #26A0B1
split-complementary
#7D26B1 #A0B126 #26B138
monochromatic
#36104C #591B7F #7D26B1 #9D3FD6 #B771E0

Accessibility & contrast

On white

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

On black

2.78
#7D26B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7D26B1#FFFFFF#000000##FFFFFF
##7D26B11.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B5
Deuteranopia (green-blind)
#0055AE
Tritanopia (blue-blind)
#75496B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7d26b1;
/* rgb */ color: rgb(125, 38, 177);
/* oklch */ color: oklch(47.3% 0.206 308.7);
Tailwind
colors: {
  custom: {
    50: '#a86bc9',
    500: '#7d26b1',
    950: '#000000',
  },
}
SCSS
$custom: #7d26b1;
$custom-light: #a86bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d26b1",
  "rgb": {
    "r": 125,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 277.554,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47342,
    "c": 0.20644,
    "h": 308.7
  },
  "luminance": 0.08921
}

Semantic roles & 50–950 ramp

primary
#7D26B1
secondary
#8EC76B
accent
#E8407F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D26B1

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

Preview Lab → · Contrast checker → · Palette generator →

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