#7D26B2#7D26B2

#7D26B2 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.207 H 308.4°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7D26B2
RGBrgb(125, 38, 178)
HSLhsl(277, 65%, 42%)
HSVhsv(277, 79%, 70%)
CMYKcmyk(29.8%, 78.7%, 0%, 30.2%)
CIE-LABlab(35.91, 58.99, -57.16)
CIE-LCHlch(35.91, 82.14, 315.90°)
OKLaboklab(47.42% 0.1289 -0.1624)
OKLCHoklch(47.42% 0.207 308.4)
XYZxyz(17.1848, 8.9608, 42.9352)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D26B2 #5BB226
analogous
#3726B2 #7D26B2 #B226A1
triadic
#7D26B2 #B27D26 #26B27D
tetradic
#7D26B2 #B23726 #5BB226 #26A1B2
square
#7D26B2 #B23726 #5BB226 #26A1B2
split-complementary
#7D26B2 #A1B226 #26B237
monochromatic
#36104D #5A1B80 #7D26B2 #9D3FD6 #B772E1

Accessibility & contrast

On white

7.52
#7D26B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D26B2
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D26B2#FFFFFF#000000##FFFFFF
##7D26B21.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#754A6C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7d26b2;
/* rgb */ color: rgb(125, 38, 178);
/* oklch */ color: oklch(47.4% 0.207 308.4);
Tailwind
colors: {
  custom: {
    50: '#a86bca',
    500: '#7d26b2',
    950: '#000000',
  },
}
SCSS
$custom: #7d26b2;
$custom-light: #a86bca;
$custom-dark: #000000;
JSON
{
  "hex": "#7d26b2",
  "rgb": {
    "r": 125,
    "g": 38,
    "b": 178
  },
  "hsl": {
    "h": 277.286,
    "s": 64.815,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47421,
    "c": 0.20737,
    "h": 308.4
  },
  "luminance": 0.08961
}

Semantic roles & 50–950 ramp

primary
#7D26B2
secondary
#8FC86C
accent
#E84080
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D26B2

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

Preview Lab → · Contrast checker → · Palette generator →

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