#7D2CA2#7D2CA2

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

Color values

HEX#7D2CA2
RGBrgb(125, 44, 162)
HSLhsl(281, 57%, 40%)
HSVhsv(281, 73%, 64%)
CMYKcmyk(22.8%, 72.8%, 0%, 36.5%)
CIE-LABlab(35.54, 53.23, -48.19)
CIE-LCHlch(35.54, 71.80, 317.85°)
OKLaboklab(46.79% 0.1263 -0.1361)
OKLCHoklch(46.79% 0.186 312.9)
XYZxyz(15.8786, 8.7704, 35.0318)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2CA2 #51A22C
analogous
#422CA2 #7D2CA2 #A22C8C
triadic
#7D2CA2 #A27D2C #2CA27D
tetradic
#7D2CA2 #A2422C #51A22C #2C8CA2
square
#7D2CA2 #A2422C #51A22C #2C8CA2
split-complementary
#7D2CA2 #8CA22C #2CA242
monochromatic
#331242 #581F72 #7D2CA2 #A040CB #B870D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D2CA2#FFFFFF#000000##FFFFFF
##7D2CA21.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)
#004FA5
Deuteranopia (green-blind)
#20559F
Tritanopia (blue-blind)
#794664
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7d2ca2;
/* rgb */ color: rgb(125, 44, 162);
/* oklch */ color: oklch(46.8% 0.186 312.9);
Tailwind
colors: {
  custom: {
    50: '#a76dbe',
    500: '#7d2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ca2;
$custom-light: #a76dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ca2",
  "rgb": {
    "r": 125,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 281.186,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46788,
    "c": 0.18568,
    "h": 312.9
  },
  "luminance": 0.0877
}

Semantic roles & 50–950 ramp

primary
#7D2CA2
secondary
#85BF6A
accent
#E14777
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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