#7D2AB6#7D2AB6

#7D2AB6 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.207 H 307.0°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7D2AB6
RGBrgb(125, 42, 182)
HSLhsl(276, 63%, 44%)
HSVhsv(276, 77%, 71%)
CMYKcmyk(31.3%, 76.9%, 0%, 28.6%)
CIE-LABlab(36.73, 58.38, -58.20)
CIE-LCHlch(36.73, 82.44, 315.09°)
OKLaboklab(48.09% 0.1247 -0.1655)
OKLCHoklch(48.09% 0.207 307)
XYZxyz(17.7271, 9.3935, 45.1262)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2AB6 #63B62A
analogous
#372AB6 #7D2AB6 #B62AA9
triadic
#7D2AB6 #B67D2A #2AB67D
tetradic
#7D2AB6 #B6372A #63B62A #2AA9B6
square
#7D2AB6 #B6372A #63B62A #2AA9B6
split-complementary
#7D2AB6 #A9B62A #2AB637
monochromatic
#391353 #5B1F84 #7D2AB6 #9C48D5 #B77AE0

Accessibility & contrast

On white

7.30
#7D2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7D2AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2AB6
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2AB6#FFFFFF#000000##FFFFFF
##7D2AB61.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#734D6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d2ab6;
/* rgb */ color: rgb(125, 42, 182);
/* oklch */ color: oklch(48.1% 0.207 307.0);
Tailwind
colors: {
  custom: {
    50: '#a86dcd',
    500: '#7d2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ab6;
$custom-light: #a86dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ab6",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 275.571,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48094,
    "c": 0.20718,
    "h": 307
  },
  "luminance": 0.09393
}

Semantic roles & 50–950 ramp

primary
#7D2AB6
secondary
#96C873
accent
#E64285
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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