#7D2BA4#7D2BA4

#7D2BA4 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.189 H 312.3°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7D2BA4
RGBrgb(125, 43, 164)
HSLhsl(281, 58%, 41%)
HSVhsv(281, 74%, 64%)
CMYKcmyk(23.8%, 73.8%, 0%, 35.7%)
CIE-LABlab(35.53, 54.06, -49.40)
CIE-LCHlch(35.53, 73.23, 317.58°)
OKLaboklab(46.83% 0.1271 -0.1396)
OKLCHoklch(46.83% 0.189 312.3)
XYZxyz(16.0209, 8.7685, 35.9633)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2BA4 #52A42B
analogous
#402BA4 #7D2BA4 #A42B8E
triadic
#7D2BA4 #A47D2B #2BA47D
tetradic
#7D2BA4 #A4402B #52A42B #2B8EA4
square
#7D2BA4 #A4402B #52A42B #2B8EA4
split-complementary
#7D2BA4 #8EA42B #2BA440
monochromatic
#331243 #581E74 #7D2BA4 #9F3FCD #B770D9

Accessibility & contrast

On white

7.63
#7D2BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7D2BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2BA4
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2BA4#FFFFFF#000000##FFFFFF
##7D2BA41.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#1C55A1
Tritanopia (blue-blind)
#784665
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7d2ba4;
/* rgb */ color: rgb(125, 43, 164);
/* oklch */ color: oklch(46.8% 0.189 312.3);
Tailwind
colors: {
  custom: {
    50: '#a76cc0',
    500: '#7d2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ba4;
$custom-light: #a76cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ba4",
  "rgb": {
    "r": 125,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 280.661,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4683,
    "c": 0.18879,
    "h": 312.3
  },
  "luminance": 0.08768
}

Semantic roles & 50–950 ramp

primary
#7D2BA4
secondary
#86C16A
accent
#E24678
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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