#7D2EB3#7D2EB3

#7D2EB3 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.3% C 0.200 H 307.5°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7D2EB3
RGBrgb(125, 46, 179)
HSLhsl(276, 59%, 44%)
HSVhsv(276, 74%, 70%)
CMYKcmyk(30.2%, 74.3%, 0%, 29.8%)
CIE-LABlab(37.06, 56.13, -55.89)
CIE-LCHlch(37.06, 79.21, 315.12°)
OKLaboklab(48.25% 0.1217 -0.1587)
OKLCHoklch(48.25% 0.2 307.5)
XYZxyz(17.5694, 9.5689, 43.5605)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2EB3 #64B32E
analogous
#3B2EB3 #7D2EB3 #B32EA7
triadic
#7D2EB3 #B37D2E #2EB37D
tetradic
#7D2EB3 #B33B2E #64B32E #2EA7B3
square
#7D2EB3 #B33B2E #64B32E #2EA7B3
split-complementary
#7D2EB3 #A7B32E #2EB33B
monochromatic
#391552 #5B2182 #7D2EB3 #9C4DD1 #B77EDE

Accessibility & contrast

On white

7.21
#7D2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7D2EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2EB3
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2EB3#FFFFFF#000000##FFFFFF
##7D2EB31.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#744E6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7d2eb3;
/* rgb */ color: rgb(125, 46, 179);
/* oklch */ color: oklch(48.3% 0.200 307.5);
Tailwind
colors: {
  custom: {
    50: '#a86fcb',
    500: '#7d2eb3',
    950: '#000000',
  },
}
SCSS
$custom: #7d2eb3;
$custom-light: #a86fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2eb3",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 275.639,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48253,
    "c": 0.19998,
    "h": 307.5
  },
  "luminance": 0.09569
}

Semantic roles & 50–950 ramp

primary
#7D2EB3
secondary
#97C676
accent
#E24685
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D2EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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