#7D2A94#7D2A94

#7D2A94 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.175 H 318.0°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7D2A94
RGBrgb(125, 42, 148)
HSLhsl(287, 56%, 37%)
HSVhsv(287, 72%, 58%)
CMYKcmyk(15.5%, 71.6%, 0%, 42%)
CIE-LABlab(34.30, 51.14, -41.68)
CIE-LCHlch(34.30, 65.97, 320.82°)
OKLaboklab(45.61% 0.1299 -0.117)
OKLCHoklch(45.61% 0.175 318)
XYZxyz(14.6300, 8.1547, 28.8146)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2A94 #41942A
analogous
#482A94 #7D2A94 #942A76
triadic
#7D2A94 #947D2A #2A947D
tetradic
#7D2A94 #94482A #41942A #2A7694
square
#7D2A94 #94482A #41942A #2A7694
split-complementary
#7D2A94 #76942A #2A9448
monochromatic
#2C0F35 #551C64 #7D2A94 #A538C4 #BB65D3

Accessibility & contrast

On white

7.98
#7D2A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7D2A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2A94
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2A94#FFFFFF#000000##FFFFFF
##7D2A941.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B97
Deuteranopia (green-blind)
#2E5392
Tritanopia (blue-blind)
#7C3F5C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2a94;
/* rgb */ color: rgb(125, 42, 148);
/* oklch */ color: oklch(45.6% 0.175 318.0);
Tailwind
colors: {
  custom: {
    50: '#a66bb4',
    500: '#7d2a94',
    950: '#000000',
  },
}
SCSS
$custom: #7d2a94;
$custom-light: #a66bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2a94",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 286.981,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45607,
    "c": 0.17478,
    "h": 318
  },
  "luminance": 0.08154
}

Semantic roles & 50–950 ramp

primary
#7D2A94
secondary
#74B960
accent
#DF4969
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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