#7D2A9E#7D2A9E

#7D2A9E is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.184 H 314.4°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7D2A9E
RGBrgb(125, 42, 158)
HSLhsl(283, 58%, 39%)
HSVhsv(283, 73%, 62%)
CMYKcmyk(20.9%, 73.4%, 0%, 38%)
CIE-LABlab(34.97, 53.20, -46.68)
CIE-LCHlch(34.97, 70.78, 318.73°)
OKLaboklab(46.3% 0.1289 -0.1316)
OKLCHoklch(46.3% 0.184 314.4)
XYZxyz(15.4559, 8.4851, 33.1647)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2A9E #4B9E2A
analogous
#432A9E #7D2A9E #9E2A85
triadic
#7D2A9E #9E7D2A #2A9E7D
tetradic
#7D2A9E #9E432A #4B9E2A #2A859E
square
#7D2A9E #9E432A #4B9E2A #2A859E
split-complementary
#7D2A9E #859E2A #2A9E43
monochromatic
#31103D #571D6E #7D2A9E #A23ACB #B96BD8

Accessibility & contrast

On white

7.79
#7D2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7D2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2A9E
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2A9E#FFFFFF#000000##FFFFFF
##7D2A9E1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#24549B
Tritanopia (blue-blind)
#7A4362
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d2a9e;
/* rgb */ color: rgb(125, 42, 158);
/* oklch */ color: oklch(46.3% 0.184 314.4);
Tailwind
colors: {
  custom: {
    50: '#a66cbb',
    500: '#7d2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #7d2a9e;
$custom-light: #a66cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2a9e",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 282.931,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46299,
    "c": 0.18423,
    "h": 314.4
  },
  "luminance": 0.08485
}

Semantic roles & 50–950 ramp

primary
#7D2A9E
secondary
#7FBE66
accent
#E14773
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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