#7D2A97#7D2A97

#7D2A97 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.178 H 316.9°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7D2A97
RGBrgb(125, 42, 151)
HSLhsl(286, 56%, 38%)
HSVhsv(286, 72%, 59%)
CMYKcmyk(17.2%, 72.2%, 0%, 40.8%)
CIE-LABlab(34.50, 51.75, -43.19)
CIE-LCHlch(34.50, 67.40, 320.15°)
OKLaboklab(45.81% 0.1296 -0.1214)
OKLCHoklch(45.81% 0.178 316.9)
XYZxyz(14.8705, 8.2509, 30.0814)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2A97 #44972A
analogous
#462A97 #7D2A97 #972A7A
triadic
#7D2A97 #977D2A #2A977D
tetradic
#7D2A97 #97462A #44972A #2A7A97
square
#7D2A97 #97462A #44972A #2A7A97
split-complementary
#7D2A97 #7A972A #2A9746
monochromatic
#2E0F37 #551D67 #7D2A97 #A537C7 #BA67D5

Accessibility & contrast

On white

7.92
#7D2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7D2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2A97
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2A97#FFFFFF#000000##FFFFFF
##7D2A971.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#2C5495
Tritanopia (blue-blind)
#7C405E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2a97;
/* rgb */ color: rgb(125, 42, 151);
/* oklch */ color: oklch(45.8% 0.178 316.9);
Tailwind
colors: {
  custom: {
    50: '#a66bb6',
    500: '#7d2a97',
    950: '#000000',
  },
}
SCSS
$custom: #7d2a97;
$custom-light: #a66bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2a97",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 285.688,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45811,
    "c": 0.17761,
    "h": 316.9
  },
  "luminance": 0.0825
}

Semantic roles & 50–950 ramp

primary
#7D2A97
secondary
#77BB62
accent
#E0486C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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