#7D26C1#7D26C1

#7D26C1 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.6% C 0.221 H 304.4°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#7D26C1
RGBrgb(125, 38, 193)
HSLhsl(274, 67%, 45%)
HSVhsv(274, 80%, 76%)
CMYKcmyk(35.2%, 80.3%, 0%, 24.3%)
CIE-LABlab(37.11, 62.27, -64.07)
CIE-LCHlch(37.11, 89.34, 314.19°)
OKLaboklab(48.63% 0.1251 -0.1827)
OKLCHoklch(48.63% 0.221 304.4)
XYZxyz(18.7740, 9.5965, 51.3050)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D26C1 #6AC126
analogous
#2F26C1 #7D26C1 #C126B8
triadic
#7D26C1 #C17D26 #26C17D
tetradic
#7D26C1 #C12F26 #6AC126 #26B8C1
square
#7D26C1 #C12F26 #6AC126 #26B8C1
split-complementary
#7D26C1 #B8C126 #26C12F
monochromatic
#3B125B #5C1C8E #7D26C1 #9B49DB #B77CE5

Accessibility & contrast

On white

7.19
#7D26C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7D26C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D26C1
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D26C1#FFFFFF#000000##FFFFFF
##7D26C11.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C5
Deuteranopia (green-blind)
#0057BE
Tritanopia (blue-blind)
#705075
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7d26c1;
/* rgb */ color: rgb(125, 38, 193);
/* oklch */ color: oklch(48.6% 0.221 304.4);
Tailwind
colors: {
  custom: {
    50: '#a96cd5',
    500: '#7d26c1',
    950: '#000000',
  },
}
SCSS
$custom: #7d26c1;
$custom-light: #a96cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d26c1",
  "rgb": {
    "r": 125,
    "g": 38,
    "b": 193
  },
  "hsl": {
    "h": 273.677,
    "s": 67.1,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48631,
    "c": 0.22142,
    "h": 304.4
  },
  "luminance": 0.09596
}

Semantic roles & 50–950 ramp

primary
#7D26C1
secondary
#9CCD75
accent
#EA3E89
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7D26C1

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

Preview Lab → · Contrast checker → · Palette generator →

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