#7D2BA2#7D2BA2

#7D2BA2 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.187 H 313.0°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#7D2BA2
RGBrgb(125, 43, 162)
HSLhsl(281, 58%, 40%)
HSVhsv(281, 73%, 64%)
CMYKcmyk(22.8%, 73.5%, 0%, 36.5%)
CIE-LABlab(35.39, 53.64, -48.42)
CIE-LCHlch(35.39, 72.26, 317.93°)
OKLaboklab(46.69% 0.1274 -0.1368)
OKLCHoklch(46.69% 0.187 313)
XYZxyz(15.8418, 8.6968, 35.0196)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2BA2 #50A22B
analogous
#422BA2 #7D2BA2 #A22B8B
triadic
#7D2BA2 #A27D2B #2BA27D
tetradic
#7D2BA2 #A2422B #50A22B #2B8BA2
square
#7D2BA2 #A2422B #50A22B #2B8BA2
split-complementary
#7D2BA2 #8BA22B #2BA242
monochromatic
#321141 #581E72 #7D2BA2 #A03ECC #B86FD9

Accessibility & contrast

On white

7.67
#7D2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7D2BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2BA2
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2BA2#FFFFFF#000000##FFFFFF
##7D2BA21.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#1F559F
Tritanopia (blue-blind)
#794564
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d2ba2;
/* rgb */ color: rgb(125, 43, 162);
/* oklch */ color: oklch(46.7% 0.187 313.0);
Tailwind
colors: {
  custom: {
    50: '#a76cbe',
    500: '#7d2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ba2;
$custom-light: #a76cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ba2",
  "rgb": {
    "r": 125,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 281.345,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46686,
    "c": 0.18687,
    "h": 313
  },
  "luminance": 0.08696
}

Semantic roles & 50–950 ramp

primary
#7D2BA2
secondary
#84C069
accent
#E14777
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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