#7D26B0#7D26B0

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

Color values

HEX#7D26B0
RGBrgb(125, 38, 176)
HSLhsl(278, 64%, 42%)
HSVhsv(278, 78%, 69%)
CMYKcmyk(29%, 78.4%, 0%, 31%)
CIE-LABlab(35.75, 58.55, -56.22)
CIE-LCHlch(35.75, 81.18, 316.16°)
OKLaboklab(47.26% 0.1294 -0.1596)
OKLCHoklch(47.26% 0.206 309)
XYZxyz(16.9854, 8.8811, 41.8853)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D26B0 #59B026
analogous
#3826B0 #7D26B0 #B0269E
triadic
#7D26B0 #B07D26 #26B07D
tetradic
#7D26B0 #B03826 #59B026 #269EB0
square
#7D26B0 #B03826 #59B026 #269EB0
split-complementary
#7D26B0 #9EB026 #26B038
monochromatic
#36104B #591B7E #7D26B0 #9D3ED5 #B770E0

Accessibility & contrast

On white

7.56
#7D26B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D26B0
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D26B0#FFFFFF#000000##FFFFFF
##7D26B01.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d26b0;
/* rgb */ color: rgb(125, 38, 176);
/* oklch */ color: oklch(47.3% 0.206 309.0);
Tailwind
colors: {
  custom: {
    50: '#a86bc8',
    500: '#7d26b0',
    950: '#000000',
  },
}
SCSS
$custom: #7d26b0;
$custom-light: #a86bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d26b0",
  "rgb": {
    "r": 125,
    "g": 38,
    "b": 176
  },
  "hsl": {
    "h": 277.826,
    "s": 64.486,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47264,
    "c": 0.20551,
    "h": 309
  },
  "luminance": 0.08881
}

Semantic roles & 50–950 ramp

primary
#7D26B0
secondary
#8DC76B
accent
#E7407E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D26B0

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

Preview Lab → · Contrast checker → · Palette generator →

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