#7D2EB6#7D2EB6

#7D2EB6 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.203 H 306.6°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#7D2EB6
RGBrgb(125, 46, 182)
HSLhsl(275, 60%, 45%)
HSVhsv(275, 75%, 71%)
CMYKcmyk(31.3%, 74.7%, 0%, 28.6%)
CIE-LABlab(37.28, 56.80, -57.30)
CIE-LCHlch(37.28, 80.68, 314.75°)
OKLaboklab(48.48% 0.1211 -0.1629)
OKLCHoklch(48.48% 0.203 306.6)
XYZxyz(17.8761, 9.6916, 45.1758)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2EB6 #67B62E
analogous
#392EB6 #7D2EB6 #B62EAB
triadic
#7D2EB6 #B67D2E #2EB67D
tetradic
#7D2EB6 #B6392E #67B62E #2EABB6
square
#7D2EB6 #B6392E #67B62E #2EABB6
split-complementary
#7D2EB6 #ABB62E #2EB639
monochromatic
#3A1554 #5B2285 #7D2EB6 #9B4FD2 #B780DF

Accessibility & contrast

On white

7.15
#7D2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7D2EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2EB6
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2EB6#FFFFFF#000000##FFFFFF
##7D2EB61.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0058B3
Tritanopia (blue-blind)
#734F70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d2eb6;
/* rgb */ color: rgb(125, 46, 182);
/* oklch */ color: oklch(48.5% 0.203 306.6);
Tailwind
colors: {
  custom: {
    50: '#a86fcd',
    500: '#7d2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #7d2eb6;
$custom-light: #a86fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2eb6",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 274.853,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48483,
    "c": 0.20295,
    "h": 306.6
  },
  "luminance": 0.09691
}

Semantic roles & 50–950 ramp

primary
#7D2EB6
secondary
#99C878
accent
#E34587
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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