#7D26C5#7D26C5

#7D26C5 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 49.0% C 0.225 H 303.4°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7D26C5
RGBrgb(125, 38, 197)
HSLhsl(273, 68%, 46%)
HSVhsv(273, 81%, 77%)
CMYKcmyk(36.5%, 80.7%, 0%, 22.7%)
CIE-LABlab(37.44, 63.16, -65.87)
CIE-LCHlch(37.44, 91.26, 313.80°)
OKLaboklab(48.96% 0.124 -0.188)
OKLCHoklch(48.96% 0.225 303.4)
XYZxyz(19.2262, 9.7774, 53.6868)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D26C5 #6EC526
analogous
#2D26C5 #7D26C5 #C526BD
triadic
#7D26C5 #C57D26 #26C57D
tetradic
#7D26C5 #C52D26 #6EC526 #26BDC5
square
#7D26C5 #C52D26 #6EC526 #26BDC5
split-complementary
#7D26C5 #BDC526 #26C52D
monochromatic
#3C125E #5C1C92 #7D26C5 #9B4CDC #B87FE6

Accessibility & contrast

On white

7.11
#7D26C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7D26C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D26C5
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D26C5#FFFFFF#000000##FFFFFF
##7D26C51.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#0058C2
Tritanopia (blue-blind)
#6E5277
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d26c5;
/* rgb */ color: rgb(125, 38, 197);
/* oklch */ color: oklch(49.0% 0.225 303.4);
Tailwind
colors: {
  custom: {
    50: '#a96cd8',
    500: '#7d26c5',
    950: '#000000',
  },
}
SCSS
$custom: #7d26c5;
$custom-light: #a96cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d26c5",
  "rgb": {
    "r": 125,
    "g": 38,
    "b": 197
  },
  "hsl": {
    "h": 272.83,
    "s": 67.66,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48964,
    "c": 0.22517,
    "h": 303.4
  },
  "luminance": 0.09777
}

Semantic roles & 50–950 ramp

primary
#7D26C5
secondary
#9FCF78
accent
#EB3D8C
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110715
muted
#807A83

Preview Lab

Preview with #7D26C5

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

Preview Lab → · Contrast checker → · Palette generator →

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